peony2012 / urlrewritefilter

Automatically exported from code.google.com/p/urlrewritefilter
Other
0 stars 0 forks source link

RewriteRule is includes parameters, when it should not #162

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. RewriteRule ^/oa/(.*) http://www.somedomain.com/oa1/$1 [R=301,L,QSA]
2. use against a url: www.somedomain.com/oa/bob?test=hello
3. currently get: www.somedomain.com/oa/bob?test=hello&test=hello
4. Removing the [QSA] flag leaves it with the parameters, when really they 
should only be present when it is passed.

What is the expected output? What do you see instead?
Apache specifies that only the path is analyzed in the RewriteRule... the 
NormalRule gets passed the full URL... when you have a rule with [QSA] you get 
the duplicate query parameters.
http://httpd.apache.org/docs/trunk/mod/mod_rewrite.html#rewriterule

What version of the product are you using? On what operating system?
4.0.4

Please provide any additional information below.

Original issue reported on code.google.com by billapep...@gmail.com on 19 Jun 2014 at 7:02