RewriteEngine {ON|OFF}
This is a simple directive that enables or disables the Rewriting capabilities of IIRF. It can be present in IirfGlobal.ini, or in Iirf.ini .
In some cases you may want none of the rules in the ini file to be effective, but you also don't want to comment all the rules out. This directive provides a simple way to turn OFF the rewriting capability, temporarily, for a site, with a one-line configuration file change.
Example usage:
Copy RewriteEngine OFF
When RewriteEngine OFF is present in the site-specific ini file, none of the redirection or rewriting rules in the ini file are processed. The ISAPI filter is still active, and still receives notification of each incoming IIS request. But it does nothing with the requests. There is one exception: IIRF will reply to a Status inquiry. See the StatusUrl directive for more information.
| It's ok to leave RewriteEngine ON in your ini file during normal operation. |
If there is no RewriteEngine directive found in the ini file, then rewriting is enabled by default.
If you specify a RewriteEngine directive in the global ini file (IirfGlobal.ini), it applies to all sites, and you cannot change this setting until you restart the filter or restart IIS itself. As with the IIrf.ini, if there is no RewriteEngine directive in IirfGlobal.ini, then the filter is enabled by default.
