Redirect 404 page to homepage, harm ?

Discussion in 'Search Engine Optimization' started by maker147, Jul 17, 2010.

  1. #1
    I'm using this php code to redirect all 404 error pages to my homepage

    Is there any bad from this ?

    header("HTTP/1.1 301 Moved Permanently");
    header("Location: http://www.mysite.com");


    (brw, im using wordpress)

    thank you.
     
    maker147, Jul 17, 2010 IP
  2. Giamatti

    Giamatti Well-Known Member

    Messages:
    1,319
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    148
    #2
    nope, perfectly good idea, your juices are spreading towards your mainpage now
     
    Giamatti, Jul 17, 2010 IP
  3. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #3
    Likely not a terrible idea but I would stick a clever html sitemap on the 404 instead ;)

    hope that helps,
    Nigel
     
    Nigel Lew, Jul 18, 2010 IP