0

Hi,

I have a question about custom 404 pages:

Lets say the user enters a non existing url, and the custom 404 page is made like this:

header("HTTP/1.0 404 Not Found");
header("Location: http://www.domain.com/custom404.php");

What does google do when reaching this code?

Does it create any duplicate content? since there is a url after the domain name??

Does it know not to index, or register any more when seeing the 404 header?

Hope some of you has the answer to this :-)

OR WHAT IS THE BEST WAY TO HANDLE 404 ERRORS WHEN IT COMES TO SEO???

Klemme

4
Contributors
6
Replies
7
Views
6 Years
Discussion Span
Last Post by Cyberdesignz
0

Google knows that when the header passes a 404, whatever URL was used to get to that page no longer exists. It will deindex that URL.

0

And the custom404.php, is not being evaluated as being a page that has duplicate content, so the entire site would be degraded in seo results?

As long the google bot sees the 404 header, it doesnt even follow the other header to the custom404.php, or?

0

cscgal, it's fine google prefer this, thanks.
But, I have a question when visitor's are trying to put any extension after url, which is not available with my web site, it should be redirect to my home page. is it fine ? or there showing 404 oops url not available. which one??

0

You *could* do 301 permanent redirects back to your homepage, but that isn't really their intended purpose. The intended purpose of 301 redirects is for renamed/moved pages. Not for pages that didn't exist in the first place. I wouldn't recommend redirecting back to the homepage, but you could either redirect to the specific page without the extension after, or do a 404 not found.

0

Google knows that when the header passes a 404, whatever URL was used to get to that page no longer exists. It will deindex that URL.

Thanks its useful.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.