Redirecting .HTML page to home page

Discussion in 'HTML & Website Design' started by Nathan Mclean, Jun 25, 2013.

  1. #1
    I just realized Yahoo still has an old version of my site listed which doesn't exist and users finding my site will be seeing a 404.

    This is the page - http://www.debtfreescotland.org.uk/index.html

    Anyway the index.html file doesnt exist anymore...

    How can I make people going to index.html be redirected to home page?
     
    Nathan Mclean, Jun 25, 2013 IP
  2. Nathan Mclean

    Nathan Mclean Member

    Messages:
    86
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    45
    #2
    I tried re-creating the index.html page and in the file I put this code

    <!DOCTYPE HTML>
    <html>
    <head>

    <meta http-equiv="Refresh" content="5; url=http://www.debtfreescotland.org.uk/">

    </head>
    </html>

    It didn't work what am I doing wrong?
     
    Nathan Mclean, Jun 25, 2013 IP
  3. Nathan Mclean

    Nathan Mclean Member

    Messages:
    86
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    45
    #3
    Actually it is working but it takes about 4-5 seconds to redirect
     
    Nathan Mclean, Jun 25, 2013 IP
  4. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #4
    .. because you clearly specified a 5 second timeout. Change it to 0.
     
    ActiveFrost, Jun 25, 2013 IP
  5. Nathan Mclean

    Nathan Mclean Member

    Messages:
    86
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    45
    #5
    It's ok I fixed it from the .htaccess file by adding a re-write rule... I'm so smart
     
    Nathan Mclean, Jun 25, 2013 IP
  6. focusoft

    focusoft Member

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #6
    Change this <meta http-equiv="Refresh" content="5; url=http://www.debtfreescotland.org.uk/">
    to
    <meta http-equiv="Refresh" content="0; url=http://www.debtfreescotland.org.uk/">
     
    focusoft, Jun 25, 2013 IP
  7. Nathan Mclean

    Nathan Mclean Member

    Messages:
    86
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    45
    #7
    Thanks active frost
     
    Nathan Mclean, Jun 25, 2013 IP
  8. neilbruce

    neilbruce Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #8
    This the right code for you replace it and upload it. Your problem will solved.
    <meta http-equiv="Refresh" content="0; url=http://www.debtfreescotland.org.uk/">
     
    neilbruce, Jul 25, 2013 IP