A lot of websites inexplicably fall right, however cannot find the reason where. Neither cheating nor optimization over, but by the search engine "mishaps" blocked. So what caused it? We're talking about it from 404. For the novice webmaster may not know what is 404 pages, not to understand 404 errors, the following content we further analysis.
One: About HTML status codes
404: The server could not find the specified resource; 410: The Request Web page does not exist (the difference between 410 is permanent, 410 is temporary does not exist) but the search engine is generally considered equivalent.
200: The client request has successfully responded, 301:url permanently directs a link, and 302: temporarily redirects a link.
Two: About the 404 page error
The 404 error of the website can say that each website cannot avoid, how many may appear 404 page error. For example: the replacement of the program, template modification, and even the deletion of articles, will lead to 404 of pages. Although the Web server has a default 404 error page, it is very unfriendly to the user because of its simplicity, which leads to the loss of traffic. But the custom 404 page Although can enhance the user's experience, save the website the traffic loss, but often ignores the search engine's unfriendly influence, for instance the debugging process returns 302 status code, causes the final search engine to think you in redirects to cheat. The correct approach is when the site specifies that the resource does not exist, the search engine through 404 pages know that the information does not exist, no longer URL indexing, rather than return 200 status code to the URL of the index.
Three: How to set 404 pages
1, based on the user experience of the 404 page settings, the first thing we have to do is a beautiful page. It is important to have navigation and return links, etc., otherwise done is not done. Entering this page when a user fails to access a resource can easily return to other pages instead of shutting down IE windows.
2, if your site is the use of virtual host
3, if the server has a host: IIS Manager-Right to manage the Web site-Properties-Custom error messages, set the appropriate information for 404. However, to select "File" or "Default" in "Message type", you may not select "URL" or return a "200" status code
4, remember to set up 404 pages for Apache, otherwise set 404 is equal to White do. The prerequisite server supports the. htaccess setting, in which you join errordocument404/notfound.php to complete the task.
This article from the binary network original writing, from the Electric Business Circle (http://www.07695.com) Summary: Set 404 Not only can improve user access loyalty, based on the 404 page SEO is beneficial to search engines, welcome the exchange of discussion.