301 redirect question

Discussion in 'Site & Server Administration' started by lasvegascom, Oct 26, 2005.

  1. #1
    I am trying to do a 301 redirect but not sure how to do it properly. I had one page named x.htm but I removed that page and replace it with y.htm. How do I redirect x.htm to y.htm. I have my website hosted on godaddy so I cant use the .htmaccess file or any mod_rewrite. The old page is already indexed so just in case someone comes from that page I want it to go to the new page PLUS alot of the content is the same so I do not want to get hit with a dup content issue.

    My only solution right now is using the meta-refresh tag which I would prefer not to do.

    Any help would be greatly appreciated?
     
    lasvegascom, Oct 26, 2005 IP
  2. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #2
    if you was using php pages you could put this in the page u wanna redirect
    <?php
            header("HTTP/1.1 301 Moved Permanently");
            header("Location: http://www.newdomain.com/");
            exit();
    ?>
    Code (markup):
    but if you are not then meta redirect mayb your last option but be careful how it is used since search engines can punish you for using meta redirects.
     
    just-4-teens, Oct 27, 2005 IP