Query string is always being appended
2 posts
• Page 1 of 1
- webprogrammer
- Posts: 2
- Joined: 05 Apr 2013, 13:32
Query string is always being appended
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?
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?
- webprogrammer
- Posts: 2
- Joined: 05 Apr 2013, 13:32
Re: Query string is always being appended
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 )
http://www.helicontech.com/forum/13986-Remove_query_string_from_escaping_url.html#63567
(tried searching first, guess google search works better )
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 18 guests