Forum Moderators: phranque
I have changed a folder of my web site from www.mysite.com/folderA to www.mysite.com/folderD/folderA and I have used .htacces for 301 redirection (one rule for all folders, subfolders and pages within).
RewriteRule ^/folderA(.*) $http://www.mysite.com/folderD/folderA$1 [R=301,L]
Before learning about .htaccess I used to leave the old folders as is and include on all pages this:
<head>
<meta http-equiv="Refresh" content="0; url=http://www.ysite.com/page.htm">
</head>
<meta name="robots" content="noindex,nofollow">
The latter worked perfectly for google and I am thinking of using both ways (shown above) in order to avoid losing my rankings. However, I dont know if any conflicts will arrive ifI use both ways, I searched for it but did not find any documantation...Does anyone know?
Thank you in advance
You can simply put the redirect code in place, test it, and then delete the old folders if successful.
Jim
For a functional test, just request a few pages from the old URLs by typing them into your browser.
To make sure the server response is correct (301-Moved Permanently), use the server headers checker [webmasterworld.com], again with the old URLs.
Jim