IRI7 Url Rewrite - Can stopProcessing = "false" be used with a redirection rule?

I want to canonicalize a domain name, from bar.example.com to www.example.com (well, nothing that is not www.example.com). The site launches IIS7.

The problem is that certain URLs are of the form http://bar.example.com/asp/oldpage.asp?query=awesome and already have certain rules for rewriting URLs that are redirected to http: // www. example.com/newpage/awesome

I want to write a rule that catches other rules.

HERE. CATCH: I have a lot of rules and you want to put this rule in the root directory of the site, but have additional rewrite / redirect rules in subfolders, so I want to delay 301 until all the rules have been followed.

Is it possible? Rewrites have the option to defer (stopProcessing = "false"), but this does not seem to be an option to redirect.

Here i am here?

+5
source share
1 answer

Unfortunately, I can confirm that deferred processing ( stopProcessing="false") only works with rewrite actions and is ignored by redirected ones.

- , - . :

First match: ^first/a$
Second match: ^second/b$

Combined match: ^(first/a|second/b)$

- :

<rule name="MyCombinedRule">
    <match url="^(first/a|second/b)$" />
    <action type="Redirect" url="http://www.example.com/third/c" />
</rule>
+6

All Articles