Feiminghong: What is the right 404 page?

Source: Internet
Author: User

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

404 page for the webmaster should not be unfamiliar, its role is no less than two: improve the user experience and enhance the friendliness of the search engine. When I was chatting with a few friends last year, tell me that 404 page can not be arbitrarily set, set the bad site will be severely down the right, not how to pay attention to, a few days ago in the laggards with peer exchange, a word "Please note your return status code" to remind me to further study the next 404.

At present, many sites have been set up 404 pages, but the true set of the correct few, the main focus on the return status code errors, almost all exclusively 200 or 301 categories, you can use HttpWatch this tool to check (this tool a bit complicated, http:// www.seobox.org/getheader.htm This online tool query is also good.

about how the server is set 404 can go to Baidu, a search can appear a lot of results, then the virtual host user how to set it? First, your provider has to provide the freedom to set up the function, if not with the access to the operator to communicate. We design a 404 page on the homepage, like ordinary pages, such as the site can be placed navigation and some friendly words to inform users of the current search page does not exist, and so on, and then save this page as an ASP dynamic form (PHP dynamic has not been tested, static page has not thought of a solution), we tested this page, You will find that the status code returned is 200, and you need to impose a code in the head:

<% response.status = "404 Not Found"%>

Save the page, check with the tool, is not found at this time the hint is 404?

Bask in the code I wrote:

  

Test results:

  

Code Demo: http://www.rdzikao.com/404/index.asp

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.