Custom 404 error page Return status code analysis

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Today and you share a custom 404 error page Return status code related issues, see this article, presumably you are doing station, or is engaged in SEO. Well, good, I believe that the 404 error pages have a certain familiarity, but I found that many friends of the custom 404 error page Return status code there are many misunderstandings, or there is no concept at all. So today, the desert Yoko Seo from the following four points to the custom 404 return Status code related issues analysis, I hope to help!

First, the classification and brief introduction of HTTP status codes

Second, make sure that the custom 404 error page returns the "404" Status Code

Third, 404 error page Returns the "200" status code problem

Four, 404 error page Return "302" status code problem

Here are four points, detailed analysis below

First, the classification and brief introduction of HTTP status codes

There are many kinds of HTTP status code, for SEO, we do not have to master all, from the point of view of the SEO, we mainly understand the following five kinds of.

404: The requested Web page does not exist (does not exclude the possibility that the link will be valid later)

410: The requested Web page does not exist (permanent)

200: The server successfully returned to the Web page

302: URL temporary redirect (jump)

301: URL Permanent redirect

If you want to understand the HTTP status code in more detail, you can refer to the WWW standard.

Second, make sure that the custom 404 error page returns the "404" Status Code

Many friends in the custom 404 error page, always think that the normal display of 404 error pages on the line, but did not consider the 404 error page Return status code is "404". In fact, this is a wrong way, we set the custom 404 error page, the need to do a step in the important task is to check whether the correct return of the "404" Status Code. If not, check to see if the settings are correct.

It is also easy to check the 404 error page for the return status code. Using the Server header Check tool, this http://www.***.org/getheader.htm is recommended here for inspection. Just enter a URL that does not exist in the Web site, and then look at the return of the HTTP header to make sure that it returns "404" and if it is not going back to the check setting. As pictured,

Third, 404 error page Returns the "200" status code problem

There must be some friends in the query 404 error page Return status code, return is not "404", Replaced by "200", then if the return of "200" will cause what kind of situation? No doubt, if the return is 200, then the search engine will certainly think that this " The Non-existent Web page "Is there, and it is conceivable that this will certainly affect the optimization effect."

Perhaps this is not very clear, give a simple example to illustrate, such as my site has two such non-existent url,http://www.***.com/111.html and http://www.***.com/222.html, So if the site's custom 404 error page Returns the status code is "200", then the search engine will think that the two pages are there, and include it in the index database, focusing on the result is that these two different URLs have the same Web content, This page content is the custom 404 error page content. We know that duplicate texts like these are extremely unfriendly to search engines. This will greatly reduce the weight of the site, or the site to search engine friendliness. Moreover, if your site does not exist too many URLs, then the repetition is not more serious, so be sure to set 404 error page, guarantee is "404" Return Status code.

Four, 404 error page Return "302" status code problem

Still, some friends will use meta-refresh to handle the 404 error page, which will jump to the home page when you visit a wrong page of your site. In fact, this is a big bogey SEO, but also a very stupid way. Like this, 404 return is likely to be 200, also may be 302 status code, so anyway or not friendly to the search engine, from the SEO point of view, this is the wrong approach. There is a more serious consequence is if the direct jump to the home page (remember: do not jump directly to the home page), is likely to lead to the site's home page in search engines can not find.

Search engine on the "302" error, or think that the Web page is there, knowledge temporarily changed the address, it will be included, but also will lead to duplicate the phenomenon of text. So if your 404 error page Returns a status code of 302, be sure to correct it, otherwise the risk is great.

The above is from the HTTP status code classification and simple introduction, make sure that the custom 404 error page returns the "404" Status code, the 404 error page returns the "200" status code problem, the 404 error page returns the "302" status code problem four aspects analyzes the custom 404 error page Return status code. If you do not know how to set up the 404 error page, see the 404 Error Page Setup method.

This article starts: Desert Yoko SEO Blog

This article address: http://www.chenjinwang.com/404-1.html (reprint please keep)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.