regex - Postcode url rewrite using IIS7 URL Rewrite not working -
i have started using iis7 , setting various url rewrites. new may making novice mistake.
i trying rewrite postcode can have /ka71dr rewrite /gis/property.asp?postcode=ka71dr
i have following it's not working:
<rule name="postcode"> <match url="^/[a-za-z]{1,2}[0-9][0-9a-za-z]{0,1} {0,1}[0-9][a-za-z]{2}$" /> <action type="rewrite" url="/gis/property.aspx?postcode={r:0}" /> </rule>
the test pattern works. when try page returns 404. can suggest doing wrong?
had remove leading slash , worked.
Comments
Post a Comment