404 page Test Return status code is 200 solution

Source: Internet
Author: User

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

The 404 page is the page that is returned when the user enters the wrong link. The goal is to tell the viewer that the page they are requesting does not exist or that the link is wrong, and that the user is directed to use other pages of the site instead of closing the window to leave.

These days the content of the site changed greatly from the original blog into a "friendship chain station", in order to make up for some loss, it is remembered to do a 404-page, guide the viewer, the results of 404 pages are also uploaded to the space, the input HTTP://51LINKS.CN/ABC test results are good to display the upload of the normal 404 pages. But this is only the first step, although the HTTP status code is "404" or "200" is not the difference, but for the search engine this is very important. Because search engine spider when request a URL to get "404" state response, that means that the URL is no longer indexed and the page is deleted from the index database by feedback to the datacenter, although the deletion process may take a long time; when the search engine gets "200" Status code, the URL is considered valid and will be indexed and included in the index database, so that the two different URLs have exactly the same content: Customize the contents of the 404 error page, which causes the replication Web page problem. Light is the search engine down the right, heavy will k off the site.

In order to solve this problem I also looked up a lot of information on the Internet, the problem is in two aspects, on the one hand you made the correct 404 pages, the other is the server settings.

First I started from the production of 404 pages, I first made a 404.asp upload to test the return of the status code is 200, rather than 404, this is certainly wrong. I heard that some space only support 404.htm, the result I made a 404.htm, passed up after testing or not. I think maybe I do 404 pages have a problem, the result I was in someone else's website up and down 404 pages, I modified the upload to the virtual host, the result is still wrong.

I think it is very willing to be my space settings have problems, so I went to my space set up a bit: (Steps below)

First step: Find custom error page in the Background Virtual Host Control Panel, click.

Step Two: Select "Use 404.htm in Web directory to customize content" (provided you have uploaded 404.htm to the Web).

Input 51LINKS.CN/ABC, after the test or return 200 status code, I think it should be the IDC side of the problem, I used webmaster tools to check, the results and I in the same IP of other people's website error page returned is also 200, this time I have eight or nine of the confidence is the IDC side of the problem, I contacted the virtual host technician through QQ. I explained the situation, he said: "Wait a moment, go to the server to see." Probably after 10 minutes, IDC let me test again, the result of the test is: Enter the Web site does not exist the status code is 404. The problem is solved!

Webmaster can also test their own site, enter a Web site does not exist, the return value is not 404!

Related Article

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.