my custom_page.html (404 error page returns 200 success code)

Discussion in 'Site & Server Administration' started by Delicious Webdesign, Sep 28, 2008.

  1. #1
    my customised 404 error page is returning a 200 success code apparently as I get this message

    It appears that the Web site delicious-webdesign.com is returning an HTTP 200 status response code in the header of 404 pages.

    see http://www.delicious-webdesign.com/custom_page.html

    anyone got an idea how to remedy this ? I have linux servers so believe the only way is to contact my hosting company
     
    Delicious Webdesign, Sep 28, 2008 IP
  2. Delicious Webdesign

    Delicious Webdesign Member

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #2
    I think I have found the solution to this
    the .htaccess file needs to have the syntax
    ErrorDocument 404 /custom_page.php
    instead of
    ErrorDocument 404 fulldomainname/custom_page.php
     
    Delicious Webdesign, Sep 28, 2008 IP
  3. Delicious Webdesign

    Delicious Webdesign Member

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    found a good resource to check your 404 pages
    gsitecrawler.com/tools/Server-Status.aspx
     
    Delicious Webdesign, Sep 28, 2008 IP