You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the tuckey urlrewriter 3.1.0 and I set up the following rule.
<rule match-type="wildcard">
<from>/nl/**</from>
<to type="permanent-redirect">/$1</to>
</rule>
I would simply like to strip away the 'nl' part of my url and leave the
rest, but if slashes are present, with $1 only the first piece is
retrieved. As a result if I consider the http request coming in
nl/blabla1/blabla2?param=3 this will be translated in blabla1
Is this the expected behavior? What shall I do in order to retrieve the
part of the url following the nl/ ?
Thank you very much.
Original issue reported on code.google.com by e.cervat...@gtempaccount.com on 29 Jun 2009 at 2:38
The text was updated successfully, but these errors were encountered:
The rule modified as in the following does the trick. No need to use the
match-type
wildcard in the end. But it is necessary to use the {query-string} construct.
<rule>
<from>/nl/(.*)</from>
<to type="permanent-redirect">/$1?%{query-string}</to>
</rule>
Original comment by e.cervat...@gtempaccount.com on 8 Jul 2009 at 2:45
Original issue reported on code.google.com by
e.cervat...@gtempaccount.com
on 29 Jun 2009 at 2:38The text was updated successfully, but these errors were encountered: