404 errors - please help

Discussion in 'Site & Server Administration' started by sadiejane, Jul 31, 2007.

  1. #1
    I am still building my website, and am also still learning.

    Having problem with very many 404 errors.

    http://domain.com/page ........ causes 404 error
    http://domain.com/page.html .......... is fine

    If it does matter, I created own http://domain.com/404.html page,
    and .htaccess file - as

    ErrorDocument 404 http://domain.com/404.html
    AddType text/x-server-parsed-html .html


    Hoping for an easy solution, with simple instructions.

    Thank you in advance.
     
    sadiejane, Jul 31, 2007 IP
  2. cormac

    cormac Peon

    Messages:
    3,662
    Likes Received:
    222
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do a 301 redirect from
    domain.com/page into domain.com/page.html

    So whatever hits the /page should get bounced onto page.html
     
    cormac, Jul 31, 2007 IP
  3. ilxeon

    ilxeon Peon

    Messages:
    336
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #3
    its best redirect 404 to your site index page by editing .htaccess as
    ErrorDocument 404 http://domain.com

    it will redirect every 404 to domain.com
     
    ilxeon, Aug 1, 2007 IP