IIS Mod-Rewrite documentation
Overview Documentation    Quick overview    Rewrite directives    Support directives    Extended directives       X-PrgRestart       X-PrgEngine       X-TxtWatchChanges       X-AddOriginalURL       X-OriginalURLHeader       X-ProxyConnTimeout       X-ProxyRespTimeout       X-ProxyKeepHost       X-VirtualDirWalk       X-UseUTF8Encoding    Control center    Apache compatibility Download Purchase FAQ  
IIS Mod-Rewrite - URL rewrite tool for IIS

X-OriginalURLHeader Directive

X-OriginalURLHeader is an extended engine setting directive that defines the name of the originally requested URL HTTP request header. To make this setting effective you need to either check the "Add original URL HTTP Header" option in the Engine Settings page, or add the directive X-AddOriginalURL on.

This directive overrides the default engine setting "Header name" in the Original URL section 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-OriginalURLHeader Header-Name

It requires only one argument. Header-Name can be any non-standard HTTP header name. The default header name is "X-Original-URL".

X-OriginalURLHeader can be used only once within the same configuration scope.

 
 
Download and try
IIS Mod-Rewrite
NOW!


IIS rewrite

Download IIS Mod-Rewrite

Purchase IIS Mod-Rewrite