View Single Post
Old 07-04-2018, 04:51 AM  
fivestarpornsitescom
Registered User
 
Industry Role:
Join Date: Jun 2016
Posts: 76
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 View Post
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]
fivestarpornsitescom is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote