XF 1.5 .htaccess redirect one file from https to http

Robru

Well-known member
Licensed customer
Code:
RewriteEngine On

    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
      
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

This .htaccess file will redirect http://example.com/ to https://example.com/

Question: I want redirect one file from https://example.com/file.html to http://example.com/file.html

Who can help me?

Thank you.
 
Back
Top Bottom