|Posted: 09 November 2011 at 9:14am
RewriteCond %HTTPS off
RewriteCond Host: (.*)
RewriteRule (.*) https\://$1$2 [I,RP]
The above rule redirects everything to https which is good but I want to prevent requests with a certain query string from being redirected.
When the query string contains "excelReport=true" I don't want the request redirected to https. I have serached the forum and found some examples but none work for my purpose.