
X-AddOriginalURL Directive
X-AddOriginalURL is an extended engine setting directive that controls whether IIS Mod-Rewrite engine should add a HTTP request header that contains the originally requested URL. The name of the HTTP header can optionally be defined using the directive X-OriginalURLHeader, or otherwise the default name will be used.
This directive overrides the default engine setting "Add original URL HTTP header" in Engine Settings page.
IMPORANT: This directive is IIS Mod-Rewrite specific. It is not compatible with Apache mod_rewrite and it should be removed from the rewrite configuration when migrating from IIS to Apache.
Configuration context
- per-server configurations
- per-virtual-host configurations
Syntax
X-AddOriginalURL (on|enable|yes|true) | (off|disable|no|false)
It requires only one argument. Specify either of on|enable|yes|true to add the originally requested URL HTTP header, or specify either of off|disable|no|false to make that header unavailable.
X-AddOriginalURL can be used only once within the same configuration scope.
|