.htaccess tutorial

htaccess Elite


Rewrite old to new internally

Ask your mod_rewrite and Redirection questions here, and get answers!

Rewrite old to new internally

Postby produke » 30 Oct 2006 20:43

Assume we have recently renamed the page foo.html to bar.html and now want to provide the old URL for backward compatibility. Actually we want that users of the old URL even not recognize that the pages was renamed.

Code: Select all
RewriteEngine  on
RewriteBase    /~quux/
RewriteRule    ^foo\.html$  bar.html
User avatar
produke
 
Posts: 242
Joined: 25 Sep 2006 04:48

Return to Redirect or Rewrite Questions