How to completely stop the rewriting process
2 posts
• Page 1 of 1
How to completely stop the rewriting process
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:
or:
What are the options to achieve the same result in ISAPI_Rewrite 3.0?
Thank you.
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.
Re: How to completely stop the rewriting process
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.
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.
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 12 guests