I put the following lines to my .htaccess and did some tests This works fine - browser goes to google (so I have mod rewrite working, right?) Options +FollowSymLinks Options +Indexes RewriteEngine on RewriteBase / RewriteRule old\.html http://www.google.com/ Code (markup): But this does not - I get a 404: (I do have a "new.html" in the root directory) Options +FollowSymLinks Options +Indexes RewriteEngine on RewriteBase / RewriteRule old\.html new.html Code (markup): What am I doing wrong here?
When using below code - make sure the new.html actually exists! Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^old\.html$ new.html [L,R=301]