redirecting missing pages?

Discussion in 'Site & Server Administration' started by onlinetrading, May 3, 2007.

  1. #1
    oki,

    So here is one for experts! :)

    I have an html site and uppdated it. All html files have different names but i didnt delete whats online due to the pagerank they all have.

    I get traffic to them .. it says "outdated" up on top and to "click here" most leave running :(

    Is there some code to put on the server to load the index.html if a file is not found on the server.

    so if someone goed to mysite.com/nonexistant.html they would end up on index.html?

    there should be a way, simple way or should i do one by one entry in the .htacess? what wouldthe entry be?

    thanks,
    Sam
     
    onlinetrading, May 3, 2007 IP
  2. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well, generally it's best to do a 301 redirect for each page that you've renamed.
    In addition, you should have a custom 404 error page, to catch any pages that you may have forgotten
     
    cyanide, May 3, 2007 IP
  3. onlinetrading

    onlinetrading Active Member

    Messages:
    253
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    cool thanks :)

    well im not redirecting to a new page... all go to 404. So ill make a custom 404 that would be the simples and add the no follow rule for the bots :)
     
    onlinetrading, May 3, 2007 IP