
RewriteOptions Directive
RewriteOptions directive is used to specify options that affect the rewriting behavior for a specific rewrite configuration.
This directive can be used only once in a rewrite configuration.
Configuration context
- per-server configurations
- per-virtual-host configurations
- per-directory configurations
- override (htaccess) configurations
Syntax
RewriteOptions options
It requires only one argument. The only acceptable value of options is inherit. By using this option, the specific rewrite configuration inherits the rules, conditions, maps, and logging of the higher scope configuration.
For example, the rules, conditions, maps, and logging defined in a server configuration can be inherited by a virtual-server rewrite configuration.
For more information about configuration scopes, read the IIS Mod-Rewrite overview.
In such case, the originally defined rules with the bound conditions are applied first and the inherited ones second.
If a map with a specific name is not defined in the original configuration, the inherited one is used.
Also, if no logging mechanism is defined in the original configuration, the inherited one is used.
|