Page 1 of 1

Soft 404 Errors

Posted: Sun May 26, 2013 12:10 am
by ja434650
Google is saying that I have soft 404 errors for these 2 URLs:

http://partyhousepong.com/beer-pong-accessories
http://partyhousepong.com/index.php?rou ... ry&path=61

The exact error message from google is:

The target URL does not exist and your server is not returning a 404 (file not found) error.

Your server returns a code other than 404 or 410 for a non-existent page (or redirecting users to another page, such as the homepage, instead of returning a 404). This creates a poor experience for searchers and search engines.


Anyone know how to fix this? Thanks.

Re: Soft 404 Errors

Posted: Sun May 26, 2013 2:15 am
by ChetanCx
open your catalog/controller/product/category.php at the end of the file you will find

Code: Select all

$this->response->setOutput($this->render());
just before it add

Code: Select all

$this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . '/1.1 404 Not Found');

Re: Soft 404 Errors

Posted: Mon May 27, 2013 5:15 am
by ja434650
Great thanks, I added that code. The only problem is for the 2 urls that i pasted above, the same page comes up as before. I used a website to check the http status code of these links and got this:

Result code: 503 (ServiceUnavailable / Service Unavailable)

google might still return an error for this. Do you know what it could mean?

Re: Soft 404 Errors

Posted: Mon May 27, 2013 5:18 am
by ja434650
Oh wait for http://partyhousepong.com/beer-pong-accessories i'm getting a 404 now. So it's just http://partyhousepong.com/index.php?rou ... ry&path=61 that's returning the 503. Maybe category.php wasn't the file that needed to be edited for this url. Any ideas?

Thanks,
John

Re: Soft 404 Errors

Posted: Mon May 27, 2013 6:24 am
by ChetanCx
both pages are 404 you can check using chrome's developer tools or websites like this http://tools.seobook.com/server-header-checker/

Re: Soft 404 Errors

Posted: Wed May 29, 2013 6:42 am
by ja434650
This is interesting because I got a 503, you got a 404, and now I just got a 200. I attached a screenshot of the 200 (OK) status code that was returned using the website you linked me to. What the heck is going on?