The following Houqingrong instructions to place 404 page code Some aspects, I hope everyone can use to the website construction: <meta http-equiv=refresh content= "3; url=http://www.iglee.net/"", to change the URL of which you want to transfer the URL, Web page can be.
Provides one of the most practical and most common code, can be used in html,asp,php, add this code to the and between can, the code is as follows
404 pages will not be found by search engines cheating
Answer: No, when your page has a small part of the disappearance of 404 page jump, search engine is not considered cheating, because it is consistent with the normal rules of the Web page, because no matter what the site can not guarantee that the page will be permanently stored.
404 pages more beneficial to user experience
When you page because the site changes to delete modified part of the content, the use of 404 pages to jump, can effectively protect the original site traffic, and when the site is not open, in the case of not set 404 pages, with reminding users, will not lose the image of the site, enhance the user experience.
404 pages of Landscaping is also very important to enhance the image of the site
404 page How to define Settings
Next more common way, with a virtual host friend can consult your server provider to define.
The first step is to turn on IIS (Internet Information Services).
The second step, select your site, right-click the attribute, click Custom Error
The third step, in the following: "HTTP error message box to find 404, select Double-click, or select the point" Edit Properties "to define your site 404 page address, this method is only applicable to have the server management rights of friends, other purchase space friend specific definition settings, ask you Server Operators.
The following returns 200 states (if the server has made security settings, you need to add the 404.html everyone Read permission, otherwise it will not return correctly. )
IIS ASP 404 error Page Setup
The way to set a static 404 error page is simpler, in IIS Manager, right-click the Web site you want to manage, open the custom error message page in properties, and set the appropriate error message page for 404. However, it is important to select "file" or "Default" in "Message type" instead of "URL", which will result in the return of the "200" status code.
Summary: No matter what the server, 404 page settings, be sure to ensure that the status code returned by the server is 404, if you can not guarantee this point, we recommend that you do not make 404 error page SEO, so do bad intentions.
how to set up 404 error pages for IIS under Windows 2003
A common problem in SEO is that when the original URL fails, the server returns the 404 error page, when we want this error page to both retain the user, and then return 404 specific operation methods as follows.
First, the correct IIS custom 404 error page
The operation is as follows:
Open IIS Manager –> right-click the properties for the custom 404 Web site –> Click Custom Error option –> in the HTTP error column and double-click 404 (Edit properties)-> Message type: File –> Click Browse to select your 404 page –> Press OK to save exit
Error page takes effect
However, some of the 2003 system IIS as set is not OK.
It turns out that file access is a problem, as long as you customize the 404 error target page, such as 404.html add users Everyone readable permission on the line.
Operations as shown
Open the Custom 404 error page of the directory where the Web page file resides, right-click the property--> security check to include Everyone. If not, add the user, the permissions can only be checked to read, and then apply, determine.
1.1 Custom 404 Error page Test
Browser Open Test URL: http://www.jb51.net/404, if your customized page is displayed, and after the following test, return status:http/1.1 404 Not Found is set correctly.
Test Web header Information tool http://web-sniffer.net
HTTP (S)-url: Enter the error URL to test: http://www.jb51.net/404
Request Type: Select Head
Other default and then dot Submit
Two, wrong 404 Page Setup method
The following method, although it can display a custom 404 error page, returns a status code of 200 and is therefore incorrect:
Set the message content as a URL
Fill in the URL/404.htm
Then put the 404.htm in the root directory of the site.
Modifying the default 404 page directly is not going to work either.
Third, the website status code reference:
In the article "Viewing search engine spiders crawling your site through an HTTP status code," I introduce some of the HTTP status codes and meanings that are often involved, such as the HTTP status codes that are frequently discussed and related to this article:
404: The server cannot find the specified resource, the requested Web page does not exist (for example, the browser requested the Web page is deleted or moved, but does not exclude the possibility of future links valid);
410: The requested Web page does not exist (Note: 410 represents permanence, while 404 indicates temporary);
200: The server successfully returns the requested Web page;
301: URL Permanent redirect
302: Site Temporary redirect
The above method of operation for the server is windows2003 under the IIS environment erected by the server