Hi i have 2 sets of ReWrite Rules
<rule name="Segments Rewrite 1" stopProcessing="true">
<match url="(.*)\/feeds\/segment\/(.*)" />
<action type="Rewrite" url="{r:1}/feeds/segment/{r:2}" appendQueryString="false" />
</rule>
<rule name="Segments Rewrite 2" stopProcessing="true">
<match url="(.*)\/segment\/(.*)" />
<action type="Rewrite" url="{r:1}/segment.aspx/{r:2}" appendQueryString="false" />
</rule>
Segments Rewrite 1 is more specific than Segments Rewrite 2, so I thought by putting 1 in front of 2, it would be OK, but how do i make sure that Rule 2 does NOT kick in once Rule 1 is matched? I thought stopProcessing would do the trick
I tried to toggle them around, experiment , but it doesn't work so far.
Please advise.
Thanks
↧
how do i stop a rule from being processed once a match is found
↧