Forum Moderators: phranque

Message Too Old, No Replies

Which 301 please?

         

Dexie

12:35 pm on Feb 20, 2005 (gmt 0)

10+ Year Member



Hi all,

Been looking at this for a few days, and seem to find 2 ways of doing a 301 from one domain to the other ;-(

Can anyone please let me know which one is the correct one to enter into the .htaccess file of the OLD domain please? **Assuming** that you want *all* page rank to transfer over.

redirect 301 / http://www.mynewsite.com/

Or:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^myoldsite.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.myoldsite.com$
RewriteRule ^(.*)$ http://www.mynewsite.com/$1 [R=301,L]

Also, are there any other advantages or disadvantages to using either one of them please?

Any help appreciated.

Sev.

[edited by: jdMorgan at 12:09 am (utc) on Feb. 22, 2005]
[edit reason] Merged duplicate posts. [/edit]

jdMorgan

12:24 am on Feb 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Either method will work in your case.

I'd suggest

Redirect 301 / http://www.mynewsite.com/

because it is simpler.

Jim

Dexie

7:37 am on Feb 22, 2005 (gmt 0)

10+ Year Member



Many thanks Jim, I have 6 domains that need to point to another, but don't mind if doing it the harder way is better in any way - can I assume from your answer, that there's absolutely no disadvantages or advantages with using either?
Your help is appreciated.
Sev.

Dexie

7:50 am on Feb 22, 2005 (gmt 0)

10+ Year Member



Hi again Jim,

Just another thought, I would much rather do the shorter code, but if you thought for example that doing the longer code would make the new site come up quicker in the visitors window, then I would do that.

Bit of a newbie to 301's, so looking to cover all bases if possible ;-)

Thanks.

Sev.