Forum Moderators: phranque
I knoe that
RewriteCond %{SERVER_PORT} ^443$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
will redirect all https urls to http but I would like to exempt my checkout urls from doing this and make them secure
the reson for this is that google has indexed certain pages including my home page as https
can anyone advise if this is possible
thanks
I looked at REQUEST_URI but I understand it but I want to say rewrit everything from https to http except these 4 url's that are in the same directory as everything else
is this possible. I know with REQUEST_URI i could put if it is this file re-write ect but there is 300 files to do I would like to rewrite everything except 4 files
If you know what I mean
Thanks
<VirtualHost _default_:443>
...
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/$ [OR]
RewriteCond %{REQUEST_URI} ^/index.htm$
RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
...
</VirtualHost>
I've had this for a couple years now; it's pretty solid.