joined:June 26, 2003
I will be changing the names of 20 directories on a site, but changing no file names.
After reading about a dozen archived threads on 'redirect' and 'rewrite', I got a bit .. er, seriously confused.
I think what I am after is an "External URL" redirect, i.e., the pages are indexed in SE's and I want the visitor clicking the links to see the pages under the new directory structure.
Looks like one way is to do 20 entries in my .htaccess file like:
RewriteRule ^/old-name/$1 http://www.example.com/new-name/$1 [R=301,L]
Is this anywhere close to being right?
Is there an easier way?