Redirecting to http

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

Redirecting to http

07 Aug 2013, 07:43

In FireFox I am facing a problem, that if the use once visits the checkout page which is a SSL then every time user come to the Site
the Browser automatically uses the https protocol


Now I am trying to redirct the page to http if it HTTP is on and the query_string does not contains page=checkout. My Rules look like


Code: Select all
RewriteCond %{HTTPS} on
RewriteCond Host: (.*)
RewriteRule (.*)\?(?!.*page=checkout.*)(.*)$ http\://1$2\?$3 [I,RP]


But it seem not to be working. And in my log file I seems that ISAPI is trying to match the URI not the Query_String

Code: Select all
Log file entry
applying pattern '(.*)\?(?!.*page=checkout.*)(.*)$' to uri ''


where my url may look like

Code: Select all
https://www.example.com?page=checkout&......
or
http://www.example.com?page=start&......
etc

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Redirecting to http

07 Aug 2013, 18:51

Hello,

You problem can be solved by following FAQ under "URLs with question mark don't work" - http://www.helicontech.com/forum/10648-FAQ.html

Regards
Andrew

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 13 guests