
RewriteBase Directive
RewriteBase directive is meaningful only in per-directory and override (htaccess) configurations, and is supported only by IIS Mod-Rewrite Pro. It lets IIS Mod-Rewrite know what the base url path is for the applied rewrites. After the last rewrite rule is applied, the base url is prefixed.
Configuration context
- per-directory configurations
- override (htaccess) configurations
Syntax
RewriteBase base-url
It requires only one argument. base-url is the prefix to the result of the applied rules.
RewriteBase can be used only once within a configuration.
|