SSL pages to non-SSL pages redirect
1 post
• Page 1 of 1
SSL pages to non-SSL pages redirect
I am trying to implement a conditions, that if the querystring does not contains any of the 3 words 'book,contact,recomend' and HTTPS is on the it should be redirected to non-SSL page.
It looks like
but it's not working. And help
It looks like
- Code: Select all
RewriteCond %{HTTP:Host} (.*)
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} (.*)
RewriteCond %{QUERY_STRING} !(book|contact|recomend)
RewriteRule .? http://%1%2 [R,L]
but it's not working. And help
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 7 guests