saokar / urlrewritefilter

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

Extra characters appended to request parameter #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have the following rule in my urlrewrite:
<rule>
  <from>^/mytest</from>
  <to type="redirect">/myron/sample.ep?template=mypremisepen</to>
</rule>

If www.myron.com/mytest is entered, this rule works.
However, if there is a typo in the URL (i.e. www.myron.com/mytestabc),
the extra characters at the end of URL (abc) get appended at the end of 
the "redirect" URL. So, "/myron/sample.ep?template=mypremisepen" 
becomes "/myron/sample.ep?template=mypremisepenabc"
and our application generates an error

urlwrite Version 2.6

thank you.

Original issue reported on code.google.com by igeykh...@myron.com on 22 Apr 2009 at 7:58

GoogleCodeExporter commented 9 years ago
This sounds like it's probably logical behaviour for urlrewrite (i.e. it's just 
doing
a replace on the url).

Try:
<from>^/mytest$</from>
(note the trailing '$')

Original comment by krom...@gmail.com on 23 Apr 2009 at 12:39

GoogleCodeExporter commented 9 years ago
Not a bug.

Original comment by tuc...@gmail.com on 27 Apr 2009 at 4:49