Changing website host and domain

Discussion in 'Site & Server Administration' started by divlayn, Apr 17, 2006.

  1. #1
    Hi,
    I have a website that I am planning to move to a different server and hosting provider as well as a different domain. So that I can plan this effectively, I would appreciate any advice on how to attempt to retain any search engine ranking. I have already read about the 301 redirect but am not sure if this is all I would need to do.
    Thanks.
     
    divlayn, Apr 17, 2006 IP
  2. MarbleHost.com

    MarbleHost.com Well-Known Member Affiliate Manager

    Messages:
    634
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    155
    #2
    Yes, 301 redirect is the best solution. If you use 301, you will not lose PR.

    You can use this:

    <?php
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: http://new-website.com/file.php");
    header("Connection: close");
    ?>

    If you are using asp, have a look here:

    http://www.seoconsultants.com/tips/asp/301.asp
     
    MarbleHost.com, Apr 17, 2006 IP