Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Jul 2004
    Posts
    87

    Default 404 httpd header returns 200 ok

    Hi there

    I was busy with google sitemaps, tried to verify them and get the following error regarding
    my server

    "We've detected that your 404 (file not found) error page returns a status of 200 (OK) in the header."

    does anyone have a idea how to correct this ?

    thanks for your help in advance

  2. #2
    Member
    Join Date
    Jul 2004
    Posts
    87

    Default

    Please , anyone have a suggestion on this

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Dec 2004
    Posts
    392

    Talking

    hi

    isnt it saying you have a proper error page and it works ?

    so your browser wont give a 404 error, it will give you the propper page you created.

    i think that is a good thing !!


    ANDY
    UK Managed Hosting
    UK Linux Support
    The information given above is intended to be advice only.

  4. #4
    Member
    Join Date
    Jul 2004
    Posts
    87

    Default

    Thanks Andy

    But google actually needs it to give a 404 instead of 200 ok , its a requirement for google sitemaps which I have trying to work with for thier verification process

  5. #5
    Member
    Join Date
    Feb 2004
    Posts
    469

    Default

    Google gobbledygook!

    The file you have is probably named 404.shtml which when you call it from your browser it will always give a 200 ok in the header. There is no way of altering that. It is perfectly normal. The file is presented to a browser that calls a file that does not exist.

    Try and rename the file to anything you like so you don't have a 404.shtml file and see if Google gives you a '404 file not found error' in the header instead of '200 OK'. That is also very normal.

    So I don't know what google expects unless they are reinventing the html language and the html error codes. Of course, one should expect anything from Google
    Last edited by Izzee; 12-09-2005 at 05:51 AM.

  6. #6
    Member
    Join Date
    Jul 2004
    Posts
    87

    Default

    hehe

    well I had actually removed the shtml file totally but was still getting the
    same error from google, perhaps they are changing html after all hehe

    I just thought there was somthing in the httpd.conf I was missing.

    Thanks for your replies

  7. #7
    Member
    Join Date
    Feb 2004
    Posts
    469

    Default

    That's good you removed it or them if you have more than the 404 server side error pages. They should not be included in a site map period. Perhaps thats what balked Google or perhaps they don't clear their browser cache

    I would like to add here that Google bots will sniff every directory and file in your domain as it has no way of knowing what not to sniff unless you tell it.

    So in your site map you put all the files that are for public consumption so the Google site map brain dead bot will know what to sniff.

    Conversely those files (including your html error code files) and the directories you don't want in the public arena should be included in the robots exclusion file, robots.txt, so that Google's other brain dead bot will know to leave them alone.

    Betwixt them both and I am sure they will compare notes, the bots will have it the way you want it and not the way they and Google want it. This applies to all the good guy bots that use the robots.txt file.
    Last edited by Izzee; 12-09-2005 at 06:54 AM. Reason: Added more info

Similar Threads & Tags
Similar threads

  1. addon domain returns 200 'OK' for non existant pages instead of 404
    By pramsey in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-26-2009, 06:14 PM
  2. [HTTPD] Random 404 error issue
    By netlook in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-29-2005, 11:55 AM
  3. 404 error when adding custom 404 page.
    By VS-Lap in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-07-2002, 12:01 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube