Domain Redirection

Discussion in 'Search Engine Optimization' started by joe_mat, Feb 3, 2007.

  1. #1
    I am using a domain from last 1 year and its having good link popularity and also indexed my search engine.

    now i am having a new domain i want that visitor to get view my website frm new domain.

    which redirection method should i use , so that its good for SEO point of view and SEs tansfer my linkpopularity to my new domain and index it fast.
    i new website is hosted on different machine with different IP.

    Should i go for 301 with htaccess or should i write this simple code on my index.php file of my old website.

    <?
    Header( "HTTP/1.1 301 Moved Permanently" );
    Header( "Location: http://www.newdomain.com" );
    ?>

    And one last thing for how many days i hav to hav this redirection code there so that SEs replace my old domain with new domain.

    Please sugest.
     
    joe_mat, Feb 3, 2007 IP
  2. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #2
    It would be better if you create a .htaccess file.
     
    Richie_Ni, Feb 3, 2007 IP
  3. bobchrist

    bobchrist Active Member

    Messages:
    4,102
    Likes Received:
    95
    Best Answers:
    0
    Trophy Points:
    88
    #3
    Yep, you need to create or locate a .htaccess file on your server. Your .htaccess file will give search engine robots instructions on security and redirects.
     
    bobchrist, Feb 3, 2007 IP
  4. joe_mat

    joe_mat Peon

    Messages:
    93
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Can i please hav that htaccess code and please let me know how many days i have to put that redirection code there
     
    joe_mat, Feb 3, 2007 IP
  5. hereyago

    hereyago Active Member

    Messages:
    389
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #5
    .htaccess file works the best
     
    hereyago, Feb 3, 2007 IP
  6. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #6
    Are you on a apache server?
    Redirect 301 [FONT=Arial][SIZE=2] /old/old.htm http://www.you.com/new.htm[/SIZE][/FONT]
    Code (markup):
     
    Richie_Ni, Feb 3, 2007 IP