Best way to redirect and save rankings?

Discussion in 'Apache' started by SonicReducer, Dec 22, 2005.

  1. #1
    Do to reasons mentioned in another thread, I am moving my site to a new domain. The site is only a month old, but I want to keep as much of the position it has so far in tact. I was planning on dropping this into my .htaccess file:

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

    Does that cover all my bases, or should I use something like:

    RewriteEngine On
    RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]

    Also, do I delete the whole website from the old domain, just leaving the .htaccess file in place or does it even matter as long as the htaccess has the redirect in it?
     
    SonicReducer, Dec 22, 2005 IP
  2. fsmedia

    fsmedia Prominent Member

    Messages:
    5,163
    Likes Received:
    262
    Best Answers:
    0
    Trophy Points:
    390
    #2
    I would use the latter method, only because if you have content on the original domain you would want all of those weights to carry over. Make sure you keep the same URI structure in the new domain too, if your'e going to use that method.
     
    fsmedia, Dec 22, 2005 IP
  3. SonicReducer

    SonicReducer Peon

    Messages:
    1,012
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your reply, I did the:

    RewriteEngine On
    RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]

    and it's working great. We'll see if the serach engines can figure out what happened now.
     
    SonicReducer, Dec 22, 2005 IP