mod_rewrite seems to be topic of the month here ;-)
I wish to redirect page1.html to page2.html as in dave's tutorial [webmasterworld.com]
however using exactly what he has suggested:
RewriteRule ^page1\.html$ page2.html [R=301,L]
I get this error in my logs:
File does not exist:
The path appears to be duplicated.
I then read a post from Andreas about the [R] flag being an external redirect needing a full URI, whereas without the [R] flag it is internal.
If I leave the R=301 out of Dave's example, it works perfectly, but of course the new URL is not shown in the browser, which I want.
But if I use [R=301,L] I have to either use /page2.html (with the trailing slash), or specify the full URI http://www.mydomain.com/page2.html or to specify RewriteBase /
Can someone please confirm this, as I am rather confused?