Ss that possible to redirect everything 404 page to home

Discussion in 'HTML & Website Design' started by danieloffice, Jul 29, 2007.

  1. #1
    is that possible to redirect all 404 page to home page, say index.html??

    The reason is: I have a website that I update lots of the pages many old pages will not work. And those page are indexed by SE and could bring into some traffic.

    Thanks
     
    danieloffice, Jul 29, 2007 IP
  2. Albert1

    Albert1 Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Very easy alter the 404 page to redirect to the main page.
    I also can recomman you a great broken link scanner you can find it at
    www.keepni.com
     
    Albert1, Jul 29, 2007 IP
  3. danieloffice

    danieloffice Peon

    Messages:
    472
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have read your recommend site, but I do not see any solution to my problem...
     
    danieloffice, Jul 30, 2007 IP
  4. wallarookiller

    wallarookiller Active Member

    Messages:
    647
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Im not an expert but cant you just 301 your 404 pages? to your index
     
    wallarookiller, Jul 30, 2007 IP
  5. danieloffice

    danieloffice Peon

    Messages:
    472
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I have close to one thousand pages...... any auto way to do that?
     
    danieloffice, Jul 30, 2007 IP
  6. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #6
    Add this line to your .htaccess file:
    ErrorDocument 404 /
    Code (markup):
     
    krt, Jul 30, 2007 IP
  7. danieloffice

    danieloffice Peon

    Messages:
    472
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7

    KRT::

    Thank you very much........ IT WORKS !!

    Is there any bad effect on this comment........ Is no, I am going to add this command to all my SITEs!!!!

    please comment
     
    danieloffice, Jul 30, 2007 IP
  8. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #8
    A downside is users may get confused when they end up at the home page, but apart from that, it is fine.
     
    krt, Jul 30, 2007 IP
  9. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #9
    It is generally better to have a custom error page than dumping people back to the home page as otherwise people will get confused/ annoyed etc
     
    AstarothSolutions, Jul 30, 2007 IP
  10. deques

    deques Peon

    Messages:
    206
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #10
    You should make a 404 page where it says that the page is dead or doesnt exist. in that page you can link to home page
     
    deques, Jul 30, 2007 IP
  11. danieloffice

    danieloffice Peon

    Messages:
    472
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    is that something that we can do in robot.txt
     
    danieloffice, Jul 30, 2007 IP