I have two websites, one that runs 99% as http (site A) and one that runs 100% as https (site B).
I want to create an htaccess file that redirects users that go from site B to site A without changing their URL from https: to http: automatically to switch to http:
What I have on site A is:
RewriteCond %{HTTPS} on
RewriteRule ^(.*)$ http://sitehere.com/$1 [R,L]
Which works perfectly, except I have one page that I do want to serve as https: on site A.
How do I exclude this page from the above htaccess rule? (let’s pretend I know the full path/file location that I want to exclude, and it’s /news/)
Thanks for your help in advance.
Just add it as a condition: