Custom 404 page returning 200 status

Discussion in 'Site & Server Administration' started by masood, Jan 27, 2009.

  1. #1
    hi every one i have a site which consist of a custom 404 page the page exist on site as 404.html when checking the page its returning a status code of 200 i am asking is it right that a 404 page is returning a 200 code.
     
    masood, Jan 27, 2009 IP
  2. supportresort

    supportresort Member

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    48
    #2
    This can happen when your site is redirecting errors to your custom error page i.e. the custom error page exists and a 200 status is then returned. One suggestion is to add the following entry to your .htaccess file (create the .htaccess file if it doesn't exist):

    ErrorDocument 404 /404.html

    I hope this helps.
     
    supportresort, Jan 28, 2009 IP