Forum Moderators: phranque

Message Too Old, No Replies

Redirection

Again...

         

omoutop

11:42 am on Jan 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi to all!

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

jdMorgan

4:33 pm on Jan 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If the redirect code works, then those old folders can no longer be accessed via HTTP. So there is no need to leave the old folders in place or to add the meta-refresh code to the pages in those old folders.

You can simply put the redirect code in place, test it, and then delete the old folders if successful.

Jim

omoutop

12:18 pm on Jan 23, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



thank you very much jdMorgan! Is there any effective way to test it?How can this be done?

jdMorgan

2:05 pm on Jan 23, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> Is there any effective way to test it?

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