We’re rewarding the question askers & reputations are being recalculated! Read more.
4 added hardcoded rule
source | link

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?

<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}&amp;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}&amp;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}&amp;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}&amp;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}&amp;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}&amp;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}&amp;provinceurl={R:4}&amp;cityurl={R:5}&amp;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

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?

<rules>
<clear />

<rule name="music search city">
  <match url="^/music/in/([a-zA-Z-+.']+)"/>
  <action type="Rewrite" url="search.aspx?cityurl={R:1}&amp;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}&amp;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}&amp;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}&amp;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}&amp;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}&amp;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}&amp;provinceurl={R:4}&amp;cityurl={R:5}&amp;t=2" appendQueryString="true"/>
</rule>

</rules>

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?

<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}&amp;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}&amp;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}&amp;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}&amp;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}&amp;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}&amp;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}&amp;provinceurl={R:4}&amp;cityurl={R:5}&amp;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

3 added 303 characters in body
source | link

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?

<rules>
<clear />

<rule name="music search city">
  <match url="^/music/in/([a-zA-Z-+.']+)"/>
  <action type="Rewrite" url="search.aspx?cityurl={R:1}&amp;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}&amp;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}&amp;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}&amp;t=2"/>
</rule>

<rule name="music search city 5">
  <match url="^music/in/([a-zA-ZZ\-+.']+)$"/>
  <action type="Rewrite" url="search.aspx?cityurl={R:1}&amp;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}&amp;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}&amp;provinceurl={R:4}&amp;cityurl={R:5}&amp;t=2" appendQueryString="true"/>
</rule>

</rules>

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?

<rules>
<clear />

<rule name="music search city">
  <match url="^/music/in/([a-zA-Z-+.']+)"/>
  <action type="Rewrite" url="search.aspx?cityurl={R:1}&amp;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}&amp;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}&amp;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}&amp;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}&amp;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}&amp;t=2"/>
</rule>   
</rules>

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?

<rules>
<clear />

<rule name="music search city">
  <match url="^/music/in/([a-zA-Z-+.']+)"/>
  <action type="Rewrite" url="search.aspx?cityurl={R:1}&amp;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}&amp;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}&amp;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}&amp;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}&amp;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}&amp;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}&amp;provinceurl={R:4}&amp;cityurl={R:5}&amp;t=2" appendQueryString="true"/>
</rule>

</rules>
2 added file where rules are stored
source | link

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?

<rules>
<clear />

<rule name="music search city">
  <match url="^/music/in/([a-zA-Z-+.']+)"/>
  <action type="Rewrite" url="search.aspx?cityurl={R:1}&amp;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}&amp;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}&amp;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}&amp;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}&amp;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}&amp;t=2"/>
</rule>   
</rules>

I have this URL www.example.com/music/in/chicago

And none of the rewrite rules below match the above URL....what am I missing?

<rule name="music search city">
  <match url="^/music/in/([a-zA-Z-+.']+)"/>
  <action type="Rewrite" url="search.aspx?cityurl={R:1}&amp;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}&amp;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}&amp;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}&amp;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}&amp;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}&amp;t=2"/>
</rule>   

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?

<rules>
<clear />

<rule name="music search city">
  <match url="^/music/in/([a-zA-Z-+.']+)"/>
  <action type="Rewrite" url="search.aspx?cityurl={R:1}&amp;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}&amp;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}&amp;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}&amp;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}&amp;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}&amp;t=2"/>
</rule>   
</rules>
1
source | link