Mobilefish.com - Apache RewriteBase

Apache: RewriteBase


Example 1:

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

This url qualifies with the rule:
https://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:
https://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:
https://www.mobilefish.com/download/apache/demo/oldurl.html


Return to site Return to site