
RewriteEngine Directive
RewriteEngine directive turns on or off the rewriting engine for a specific rewrite configuration.
This directive must be used only once in a rewrite configuration.
Configuration context
- per-server configurations
- per-virtual-host configurations
- per-directory configurations
- override (htaccess) configurations
Syntax
RewriteEngine on|off
It requires only one argument. Specify on if you want the rewrite engine to enable this rewrite configuration.
Specify off if you want to disable this rewrite configuration. It is preferable to specify off
instead of commenting out all the directives in the configuration, because this way you reduce CPU consumption.
|