Soldato
- Joined
- 10 Sep 2003
- Posts
- 5,019
- Location
- Midlands
When in my shopping cart, because my URL's are relative, when a cusomer clicks back into the catalog it goes to the page in SSL mode. This brings up errors about how the page contains unsecure images bla bla.
I'd like to make it so if the user us not in the checkout and in https, they get redirected to the http version.
For some reason, the below doesn't work - any ideas why?
I'd like to make it so if the user us not in the checkout and in https, they get redirected to the http version.
For some reason, the below doesn't work - any ideas why?
Code:
# ssl redirect
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} !^(checkout|css|images|js)
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]