index html and index.htm

Discussion in 'Site & Server Administration' started by e10, Nov 28, 2005.

  1. #1
    The site in question used to be index.htm but is now index.html. My client just noticed that Yahoo is throwing up a couple of old pages from a previous site design (two years ago). Via the old page it is possible to click to the original index page because it was htm not html so the new version did not overlay it.

    What is the best way to handle this - have a duplicate htm and html?
    Redirect? ... and if so, how to do it properly.

    Do these old pages just hang about forever?
     
    e10, Nov 28, 2005 IP
  2. vagrant

    vagrant Peon

    Messages:
    2,284
    Likes Received:
    181
    Best Answers:
    0
    Trophy Points:
    0
    #2
    301 redirect is the best way

    301 is interpreted as "moved permanently".
     
    vagrant, Nov 28, 2005 IP
    e10 likes this.
  3. adman_9000

    adman_9000 Peon

    Messages:
    43
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Did you not delete the original pages via ftp then? I would probably suggest removing all the old pages & puting a meta redirect in the index.htm file linking to index.html.
     
    adman_9000, Nov 28, 2005 IP
    e10 likes this.
  4. Alexander

    Alexander Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    There are a lot of solutions like:
    a) redirect *.htm to *.html
    b) redirect *.htm to index.html
    b) redirect xxx.htm to yyy.html even hundreds redirections!
    etc.
     
    Alexander, Nov 29, 2005 IP
  5. e10

    e10 Well-Known Member

    Messages:
    2,250
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    185
    #5
    Thanks everybody. I didn't delete the old files via ftp and there were only a couple that have not been replaced by newer versions. I didn't even notice they were there and they haven't been popping up till now.

    Anyway I solved the htm/html problem in the simplest way - I deleted the file via ftp and htm now resolves to html anyway. DOH!
     
    e10, Nov 30, 2005 IP
    Crazy_Rob likes this.