| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|Chaging Folder Names|
best redirect or rewrite method?
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?
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved