Website optimization and promotion can not be ignored 404 pages

Source: Internet
Author: User

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

About the 404 origin, this is by HTTP request (similar to the address in the IE Address bar, enter, display information, this is an HTTP request, but more than this, there are post, robot and other behavior of the server, and the server can not find any resources at the given address of the state code returned, Its English name is called: Sc_not_found.

Here are a few default 404 pages:

Typically, each Web server has a default 404 page that tells the viewer that the page they are requesting does not exist or links to errors. These default pages are ugly, and may still be a bunch of code that ordinary netizens don't understand (as shown on two). Obviously, standing in the SEO, user experience to see, this does not guide users to use the site's other pages, instead of mercilessly turn off our page and walk away.

404 page Face SEO impact

Customizing the 404 error page is a good way to enhance the user experience, but it often fails to notice the impact on the search engine, such as a bad server-side configuration that causes the return of a "200" status code or a custom 404 error page to use meta-refresh to return a "302" status code. A custom 404 error page that is correctly set should not only be displayed correctly, but should also return the "404" error code instead of "200" or "302". Although the HTTP status code is "404" or "200" for the user, it is very important for the search engine.

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.

Visible 404 pages in the face of the impact of SEO can not be overlooked, inadvertently there is the danger of scattered lives. Then pay attention to the topic is: How to make a user experience conducive to SEO, can retain the user's 404 pages, and is how to set on the server.

First: How to make? Let's look at a few cases before you say:

  

  

  

The above three cases compared with the default 404 page, which is more affinity, which can retain users, the answer is self-evident. From the classic case we can summarize the production of 404 pages of several points:

1, to tell the user where the situation-no information found, error.

2, to tell the user the reason for the error.

3, use vivid language or picture to alleviate the user's mood.

4, tell the user how to solve the problem next.

5, retention of users, enhance affinity.

Second: How to set the problem on the server, in fact, this problem in many places on the internet can be found.

1. For existing Web page content due to the path changes caused by the access, can be defined in IIS 404 error point to a dynamic page, in the page using 301 permanent redirect to jump to the new address, when the server returned 301 status code.

2, set 404 point to a well-designed HTML file, this time the page returns the 404 status code. Now the IDC provider basically provides 404 set of functions, directly upload file settings. To set the method in IIS: Open IIS Manager--> Click the properties of the Web site you want to set custom 404--> click Custom error option--> select 404 Page--> Select and open Edit Properties--> set to URL--> URL to fill in. Err404.html "--> Click OK to exit and then upload the good err404.html page to the site root directory. In message type here, be sure to select file or default, rather than URL, which will result in the return of a "200" status code.

3, 404 point to a dynamic page, such as error.asp, if not set inside the page, just return the hint of the HTML code, will cause the page to return 200 status code, this is not true, we can display the content of the prompt, add the statement: response.status= "404 Not Found" ensures that the page returns a 404 status code.

4, Apache set 404 error page. The way to set the 404 error page for Apache server is simple, just add the following in the. htaccess file, ErrorDocument 404/notfound.php.

Last few notes:

1, remember not to automatically turn the 404 error to the homepage of the website, otherwise it may cause the homepage to disappear in the search engine.

2, in the robots.txt file to screen out 404 pages.

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.