The page isn’t redirecting properly
An error occurred during a connection url.com.
This problem can sometimes be caused by disabling or refusing to accept cookies.
RewriteCond %{HTTPS} =off
RewriteCond %{REQUEST_URI} !^\/page.html\/
RewriteCond %{REQUEST_URI} !^\/page2\/
RewriteRule (.*) https://%{HTTP_HOST}/$1 [L,R=301]
RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_URI} \/url.com\/ [OR]
RewriteCond %{REQUEST_URI} \/page2\/
RewriteRule (.*) http://%{HTTP_HOST}/$1 [L,R=301]
I think i saw that link before. Is that right. without http in front. OR does it need fullurl.
Quote:
Originally Posted by Paul&John
You can try this to exclude that single directory/url: https://stackoverflow.com/questions/...ages-in-apache
Code:
RewriteEngine On
RewriteCond %{HTTPS} =off
RewriteCond %{REQUEST_URI} !^\/page1\/
RewriteCond %{REQUEST_URI} !^\/page2\/
RewriteRule (.*) https://%{HTTP_HOST}/$1 [L,R=301]
RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_URI} \/page1\/ [OR]
RewriteCond %{REQUEST_URI} \/page2\/
RewriteRule (.*) http://%{HTTP_HOST}/$1 [L,R=301]
|