
Originally Posted by
benbob
Hi John,
Am I correct in assuming that you have tried, too, but not found a solution as of yet?
I noticed this only this recently for the first time. I've not accessed WMT/GA for a good month due to a computer crash and resulting access problems whilst lacking time to sort it out. I am fairly sure these errors weren't there in October, but unfortunately am not 100% sure of that.
Have you had these errors long?
Try this it appears to work and keeps Google Webmaster Tools from complaining:
// .htaccess
PHP Code:
# add these lines to the bottom of the .htaccess file
ErrorDocument 404 http://your-site.com/errors/404.php
// errors/404.php
PHP Code:
<?php
header("HTTP/1.1 200 reset-to-keep-Google-Webmaster-Tools-Happy " );
$title = 'Error file - 404.php';
?>
<doctype html>
<!Doctype html>
<head>
<title><?php echo $title;?> </title>
</head>
<body>
<h1>
<?php echo $title;?>
</h1>
<body>
</html>
Further information regarding setting header();
http://ranacse05.wordpress.com/2008/...ader-tutorial/
Bookmarks