Apache: RewriteBase


Example 1:

RewriteEngine On
RewriteBase /download/apache/demo/
RewriteRule ^oldurl\.html$ newurl.html [L]

This url qualifies with the rule:
http://www.mobilefish.com/download/apache/demo/oldurl.html


Example 2:

RewriteEngine On
RewriteBase /demo/
RewriteRule ^oldurl\.html$ newurl.html [L]

This url does not qualifies with the rule:
http://www.mobilefish.com/download/apache/demo/oldurl.html

Example 3:

RewriteEngine On
RewriteBase /download/apache/
RewriteRule ^oldurl\.html$ newurl.html [L]

This url does not qualifies with the rule:
http://www.mobilefish.com/download/apache/demo/oldurl.html