: IIS URL rewrite rules not matching I have this URL www.example.com/music/in/chicago And none of the rewrite rules in placed in my rewriteRules.config below match the above URL....what am I missing?
I have this URL example.com/music/in/chicago
And none of the rewrite rules in placed in my rewriteRules.config below match the above URL....what am I missing?
<rules>
<clear />
<rule name="music search city hardcode">
<match url="^/music/in/chicago"/>
<action type="Rewrite" url="contact.aspx"/>
</rule>
<rule name="music search city">
<match url="^/music/in/([a-zA-Z-+.']+)"/>
<action type="Rewrite" url="search.aspx?cityurl={R:1}&t=2"/>
</rule>
<rule name="music search city 2">
<match url="^/music/in/([a-zA-Z-+.']+)"/>
<action type="Rewrite" url="search.aspx?cityurl={R:1}&t=2"/>
</rule>
<rule name="music search city 3">
<match url="^/music/in/([a-zA-Z-+.']+)"/>
<action type="Rewrite" url="search.aspx?cityurl={R:1}&t=2"/>
</rule>
<rule name="music search city 4">
<match url="^/music/in/([a-zA-Z-+.']+)$"/>
<action type="Rewrite" url="search.aspx?cityurl={R:1}&t=2"/>
</rule>
<rule name="music search city 5">
<match url="^music/in/([a-zA-Z-+.']+)$"/>
<action type="Rewrite" url="search.aspx?cityurl={R:1}&t=2"/>
</rule>
<rule name="music search city 6">
<match url="^music/in/([a-zA-Z-+.']+)$"/>
<action type="Rewrite" url="search.aspx?cityurl={R:1}&t=2"/>
</rule>
<rule name="final rule">
<match url="^(fornitori|vendors)/(musica|music)/c/([a-zA-Z0-9-+']+)/([a-zA-Z0-9-+']+)/([a-zA-Z0-9-+' ]+)$"/>
<action type="Rewrite" url="search.aspx?countryurl={R:3}&provinceurl={R:4}&cityurl={R:5}&t=2" appendQueryString="true"/>
</rule>
</rules>
update
I added rule hardcode to redirect to a different page and even that does not work...I'm really confused now
More posts by @YK1175434
1 Comments
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.