I run the free version of Helicon ISAPI Rewrite in IIS and have several sites running through the same set of rewrite rules. So far, this has been great, since all the rules applied to all sites. I recently added a new site that I do not want to use in all the rules. Is there a way to make requests to this site break out of the ruleset after it has completed its own rules.
I tried the following with no luck; all requests to mysite.com lead to 404. I assume that I am looking for a rule that does nothing and is marked as the last rule to execute [L].
## New site rule for mysite.com only RewriteCond Host: (?:www\.)?mysite\.com RewriteRule /content([\w/]*) /content.aspx?page=$1 [L] ## Break out of processing for all other requests to mysite.com RewriteCond Host: (?:www\.)?mysite\.com RewriteRule (.*) - [L] ## Rules for all other sites RewriteRule ^/([^\.\?]+)/?(\?.*)?$ /$1.aspx$2 [L] ...
mod rewrite
Rob bell
source share