404 pages of Learning: A summary of the study of 404

Source: Internet
Author: User
Tags header

Web page Production WEBJX article introduction: share the knowledge in the 404 error pages.

The basic understanding of 404 is that the Web page does not exist, it is a status code in the HTTP protocol. Even if you customize 404 of the page, but HTTP header information returned must be 404 states. This is mainly related to search engines, because if your site produces more pages, but the search engine sees many of the same normal pages, it may be mistaken for cheating.

This week I share the theme: Learning in 404.

The basic understanding of 404 is that the Web page does not exist, it is a status code in the HTTP protocol.

The recent need to solve a problem through 404来, so produced a series of research on 404, summed up some small harvest to share it out:

1. Even if you customize 404 of the page, but the HTTP header information returned must be 404 states. This is mainly related to search engines, because if your site produces more pages, but the search engine sees many of the same normal pages, it may be mistaken for cheating.

2.404 pages do not automatically jump, let users decide where to go.

3. Custom 404 page content should not be too small, otherwise the browser is not recognized. I've had a hard one, and it's been a long day for that. HTTP data is divided into header and content, for browsers to display what is not in fact the header determines the content, that is, when the header information is 404 state, if you output content should also be like a page, The browser will output you this content to the user, in contrast to browse the default of its 404 page display to the user.

More about other hope ...

Our 404 pages have done so several jobs:

1. Identify the picture, that is, if the URL is a picture that I returned is the picture instead of HTML, so that will not cause, if your site some pictures are deleted after the site shows a bad experience of red X.

2. Regenerate static pages that can be generated when a static page does not exist on the information detail page when a 404-page trigger occurs.

3. Identify search engine keywords, give users better guidance information, that is, if the user from the search engine in the page is not there, then we can through the user in the search engine input keyword to provide information about our website to the user to prevent direct loss of users, the effect of directly look at the following figure:

Baidu search for a keyword:

Http://www.baidu.com/s?wd=%B3%F6%CA%DB+%C3%C0%C8%CB%B1%AA+%BA%DA

The user clicks the link on Figure 273 above to reach the following page:



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.