Relative Content

Tag Archive for apachemod-rewrite

Apache RewriteRule redirecting to wrong protocol

So I have an incoming request scenario where I need to read a query string parameter, set a cookie from that parameter, and then strip off the query string. Easy enough and it works. Except that it introduces an additional redirect that shouldn’t be necessary and it’s not clear to me why it’s doing so. I’m hoping someone here can see what I’m missing.

Stripping query string except from specific URL

I’m trying to use RewriteCond and RewriteRule to strip a query string from all URLs on a site except for those in a specific URL. The problem I’m having is with the multiple conditionals that are required to combine the EXCEPT part that’s required.