Msg#: 4274730 posted 5:07 pm on Mar 1, 2011 (gmt 0)
I have done a lot of reading on this issue but can not seem to fix my problem. The problem is that my custom 404 page does not seem to return headings correctly. In google webmaster tools it is showing me that I have soft 404's. I'm not sure if this is something incorrect I have in my .htaccess file or the 404 page itself. I have tried to set a forced 404 heading but it does not work.
here is an example of the custom error page being tested.
when i try and access a page that is not on my website i get this heading return from a header checker:
#1 Server Response: example.com/asdfsdvas/asdvsa HTTP/1.1 302 Found Date: Tue, 01 Mar 2011 16:56:07 GMT Server: Apache/1.3.41 (Unix) mod_gzip/188.8.131.52a PHP/5.2.12 mod_ssl/2.8.31 OpenSSL/0.9.8e X-Powered-By: PHP/5.2.12 Set-Cookie: PHPSESSID=458dc58b87e03eecab328379488fb037; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Status: 404 Not Found Location: /404.php Content-Type: text/html
that looks incorrect to me as I see it says 302 found at the top of the page. Is there a problem with this setup or is it ok to return these for a custom 404 page?
Msg#: 4274730 posted 10:59 pm on Mar 1, 2011 (gmt 0)
Please, do take your Apache questions to our Apache forum - thanks. Webmasters use many different servers, so Apache details are best discussed there. You'll have the added benefit of some highly qualified eyes on any advice you're given.