regex - "Exceptional" rule for Tuckey URL Rewrite Filter -
guys! i'm using tuckey url rewrite filter , want requests not started "/specialurl/" beingness prefixed "/prefixurl/". example:
"/specialurl/xxx" stands ("/specialurl/xxx"), but "/otherurl/xxx" transforms "/prefixurl/otherurl/xxx"; "/xxx" transforms "/prefixurl/xxx".how should describe such rule(s)?
you can utilize rule:
<rule match-type="regex"> <condition name="request-uri" operator="notequal">^/specialurl/.*$</condition> <from>^/(.*)$</from> <to type="permanent-redirect">/specialurl/$1</to> </rule>
regex redirect tuckey-urlrewrite-filter
No comments:
Post a Comment