IIS Mod-Rewrite documentation
Overview Documentation    Quick overview    Rewrite directives       RewriteEngine       RewriteRule       RewriteCond       RewriteMap       RewriteOptions       RewriteLog       RewriteLogLevel       RewriteBase       RewriteLock    Support directives    Extended directives    Control center    Apache compatibility Download Purchase FAQ  
IIS Mod-Rewrite - URL rewrite tool for IIS

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

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.

Download and try
IIS Mod-Rewrite

IIS rewrite

Download IIS Mod-Rewrite

Purchase IIS Mod-Rewrite