A few days ago Huang said the importance of 404 pages, today to say how to set 404 pages to the site!
Nonsense not much to say, into the subject:
How to set up in a server environment:
1. First open IIS, the site you want to set the right click Properties, find a custom error column!
2. You should see HTTP errors, turn down, find 404, a total of three 404
3. Double click on this 404 and click Browse to find the 404 pages you have downloaded or written yourself.
4. Then change your 404 files to 404, 404:2, and 404:3.
Then save it, so the site's 404 set to Succeed!
Two: Some friends use the virtual host space, that how to set 404?
It's simple, it's just a pseudo static setting.
The virtual host is set 404 by using the. htaccess file, which is located in the root directory of the Web site, and if your space is not available, please manually create a new upload to the root directory first
Next, edit this file and add the following line of code
ErrorDocument 404/jmdrkjcn.html
/jmdrkjcn.html is the wrong way to use the Web page, please change!
The above is the server as well as the virtual host set up the Method! Of course, after setting up, in order to just in case, we can go to the Webmaster home first query The return status is not 404, because sometimes you open the page tip 404, but actually return the code is not 404!
In webmaster home casually input a wrong URL, and then query, if the return status code of 404, then the site's 404 has been set up successfully!
More Webmaster articles please visit Huang Blog, the original address: Http://www.jmdrkj.cn/335.html starting A5, reproduced please specify the source!
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.