#1
  1. No Profile Picture
    Registered User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Aug 2008
    Posts
    25
    Rep Power
    0

    We've detected that your 404 (file not found) error page


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

    I am getting this from google. What do I have to have in it? It is just a straight htm page?
  2. #2
  3. Contributing User
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Jun 2008
    Posts
    464
    Rep Power
    91
    That's for Google ownership verification. Google Webmaster Tools propose 2 ways to verify that you are the owner of the site that you have submitted:

    Meta tag verification: a code to add in tour home page, or an empty file with a specific name generated by Google. The second method will not work if you have a customized 404 page or if you redirect 404 error toward your home page.

    So either change the verification method by using the meta tag verification or change the code of your 404 custom page to send a 404 header.

    if it is a PHP page, you just need to put this code at the beginning of your page, before any HTML code:

    Code:
    <?php
    header ("HTTP/1.1 404 Not Found");
    header("Status: 404 Not Found"); 
    ?>

    Comments on this post

    • EGOL agrees : Thank you! I just searched google for this problem with one of my sites and found this thread. Nice to get the info from a member here!
    SEO for the dummies
    “Outside of a dog, a book is a man's best friend. Inside of a dog it's too dark to read.” — Groucho Marx.
  4. #3
  5. Somehow Contributing User
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Oct 2004
    Location
    central Central Europe
    Posts
    434
    Rep Power
    30
    Originally Posted by Keiros
    if it is a PHP page, you just need to put this code at the beginning of your page, before any HTML code:

    Code:
    <?php
    header ("HTTP/1.1 404 Not Found");
    header("Status: 404 Not Found"); 
    ?>
    Should it be between the <head> tags or even before it ?
  6. #4
  7. Smoke me a kipper...
    SEO Chat Hero (2000 - 2499 posts)

    Join Date
    Aug 2007
    Posts
    2,472
    Rep Power
    77
    HTTP headers (like these) should be sent prior to any actual page content, including whitespace.
    ... I'll be back for breakfast
    New to SEO? SEOChat SEO FAQs
    Forum Rules and Posting Guidelines
    URL canonicalization code solutions
    Vigorously pursuing the floccinaucinihilipilification of cheap SEO tricks
  8. #5
  9. Live and Learn!
    SEO Chat Skiller (1500 - 1999 posts)

    Join Date
    Jun 2006
    Location
    London, England
    Posts
    1,803
    Rep Power
    352
    FYI; For ASP

    <%
    Response.Status = "404 Not Found"
    %>

Similar Threads

  1. Variety of File Formats
    By Jasontnyc in forum Google Optimization
    Replies: 9
    Last Post: Oct 25th, 2004, 02:50 PM
  2. robots txt file
    By martin in forum Google Optimization
    Replies: 3
    Last Post: Jul 23rd, 2004, 05:55 PM
  3. Page 1 SER, PR5, no BL found etc.
    By Mano70 in forum Google Optimization
    Replies: 0
    Last Post: Jul 18th, 2004, 05:23 AM
  4. Spiderview script file not found
    By Cor in forum Web Design, Coding and Programming
    Replies: 0
    Last Post: Aug 15th, 2003, 07:53 AM
  5. page rank of link page
    By adairk in forum Public Site Reviews
    Replies: 9
    Last Post: May 31st, 2003, 04:30 AM

IMN logo majestic logo threadwatch logo seochat tools logo