SSL pages to non-SSL pages redirect

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 33
Joined: 18 Jul 2012, 07:50

SSL pages to non-SSL pages redirect

07 Apr 2016, 12:54

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


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

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 12 guests