Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 28504

how do i stop a rule from being processed once a match is found

$
0
0

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


Viewing all articles
Browse latest Browse all 28504

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>