Set up 404 re-direct to home page - Please help Urgent

Discussion in 'Programming' started by Dave4559, Nov 5, 2007.

  1. #1
    Hi,

    I need some urgent help with a small, easy programming job. Happy to pay for services through paypal.

    I am replacing an existing site with a new site, and quite a few of the existing urls are different, therefore, I would like to set-up a 404 error re-direct so unfound pages go to home page automatically.

    I tried to add 'ErrorDocument 404 /index.php' on the last line into the .htaccess file but it didnt work (might have something to do with fact that I need to do this for an add-on domain in cpanel, i may not have put it in correct place.

    Can you help please?

    Dave
     
    Dave4559, Nov 5, 2007 IP
  2. MiCCAS

    MiCCAS Guest

    Messages:
    301
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Can be done, add me to msn or PM me.
     
    MiCCAS, Nov 5, 2007 IP
  3. Dave4559

    Dave4559 Peon

    Messages:
    174
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    All fixed, thanks all!!!
     
    Dave4559, Nov 5, 2007 IP
  4. AdnanAhsan

    AdnanAhsan Well-Known Member

    Messages:
    601
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    simple is that, you can code a 404 error page, you can redirect from that error page to home page..

    also you can change settings of .htaccess ;)
     
    AdnanAhsan, Nov 5, 2007 IP