How to completely stop the rewriting process

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
Posts: 1
Joined: 09 Sep 2016, 19:01

How to completely stop the rewriting process

09 Sep 2016, 19:14

I am migrating Apache-based .htaccess file over to ISS and ISAPI_Rewrite 3.0.

My .htaccess file has rules written such that I want to stop any further rewriting once a rule is applied. I can do this in Apache with either [end] flag:

Code: Select all
RewriteRule .* index.php [end]


or:

Code: Select all
RewriteCond %{ENV:REDIRECT_STATUS} ^$


What are the options to achieve the same result in ISAPI_Rewrite 3.0?

Thank you.

User avatar
Posts: 7
Joined: 17 Dec 2012, 11:23
Location: Pennsylvania

Re: How to completely stop the rewriting process

18 Sep 2016, 21:04

RewriteCond %{HTTP:Host} ^domainName(.*)\.org$ [NC,OR]
RewriteCond %{HTTP:Host} ^(.*)\.domainName(.*)\.org$ [NC]
RewriteRule ^/(.*) http://domain.org/$1?name=%1 [L]

THere are a number of extensions that can be put in square brackets []
NC - No Case (rule does not need to match case)
OR - (Mattches first or second rule)
L - Last Rule (this is the last rule that will be executed and further rules will not be processed.

I hope I understood your question and this helps.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 29 guests