Query string is always being appended

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 2
Joined: 05 Apr 2013, 13:32

Query string is always being appended

05 Apr 2013, 14:00

I did not add the QSA option but it seems that the querystring is still being appended to the url when rewriting. This does not seem to be happening to every url.

here's the full rule:

RewriteCond %{REQUEST_METHOD} (?:GET|HEAD|POST)
RewriteCond %{QUERY_STRING} ^(.+)$ [NC]
RewriteRule ^(?!admin)(.*?_cdo)(.*?\.html?)(.*) /$1$2&%1 [NC]

here's the source url:
library/article_cdo/aid/1923/section/Multimedia.htm?gclid=COC4u4DwhrYCFe1lOgod6EAAgg

this is what it rewrites to:
/library/article_cdo/aid/1923/section/Multimedia.htm&gclid=COC4u4DwhrYCFe1lOgod6EAAgg?gclid=COC4u4DwhrYCFe1lOgod6EAAgg

How can I block the query string from being added?

User avatar
Posts: 2
Joined: 05 Apr 2013, 13:32

Re: Query string is always being appended

05 Apr 2013, 14:18

I found the answer here:
http://www.helicontech.com/forum/13986-Remove_query_string_from_escaping_url.html#63567

(tried searching first, guess google search works better :D )

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 18 guests