urlrewritefilter
urlrewritefilter copied to clipboard
RewriteRule is includes parameters, when it should not
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 [email protected] on 19 Jun 2014 at 7:02