Talking about the setting of 404 pages and matters needing attention

Source: Internet
Author: User

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

Every time we enter a wrong URL in the browser, we jump to a page that says "The page cannot be found: The page you are searching for may have been deleted, renamed or Temporarily unavailable", which is called the 404 page. Next Xiamen SEO will be with you to say 404 pages in detail!

404 page is a more important aspect of website optimization, when you enter a wrong URL, you will jump to the 404 page, this time the return of the status code is 404, is to tell the search engine, this site does not exist, you do not include it, useless, we are not found this 404 page is ugly, User experience is not good, this is the system default of 404, if you feel bad, you can set up a personalized 404 pages, then how to set it?

Xiamen SEO a website has a 404 page, url: www.***.com/404.htm, we can go to see, is not very good-looking? Next to Xiamen SEO will give you talk about how to set up personalized 404 pages!

First you have to design a 404 page, this do not I teach it? Very simple, with DW to design, note that 404 pages can not automatically jump to the home page, so the search engine is very unfriendly, your station may be down the right, and even be judged as cheating, you give an obvious link to guide everyone to point on the line. When you're done, you can start setting up 404 pages, first 404 pages through FTP uploaded to the site root directory, if you are using a virtual host, then you can enter the host management Control Panel, generally have a wrong page set this function, you choose the Web directory under the 404 page, click OK! The 404 page settings for the space I use are shown in the following illustration:

If you are using a VPS or server, then you can enter the VPS or server inside the set, I have another site to use the Vps,iis configuration, so Xiamen SEO said that IIS configured how to set 404, you first open IIS, and then find your site, point right key-> properties- > Error document settings, find 404, and then click Edit, Find your own site under the root directory of the personality of 404 pages, selected, point OK on the OK, note that the type to select files, do not select messages, select the message, the return of the status code is 200, this is wrong!

After setting up 404 pages, we should check if the status code returned is 404, if it is the correct word, if the status code is 200, then it means that there is a problem! Simply speaking, it is not correct to return a 200 status code. We enter a wrong link in the browser, no personalized 404 page, The return of the status code is definitely 404, this is to tell the search engine the link is wrong, give up the index of the link, and set personalized 404 page, although the display is the personality of 404 pages, But the address bar above the browser is still the wrong link, not jump to "www.xxxx.com/404.htm", the link is still invalid, so the return status code should be 404, not 200, if the return is 200, Then the search engine will index the link, which will result in a large number of different invalid links to the same page content, the result is a search engine on the site's trust greatly reduced.

Many people will ask how to check the return status code, in fact very simple, Baidu search "status code detection" On the line, a lot of search, the following is to detect the error of my Site link return status code results. In fact, many people do not pay attention to detection, thought that set up 404 pages good, this is wrong, it is best to detect.

Said so much, we should understand it, if you do not understand the words can go to Baidu, or else you can find me Exchange, QQ Group: 150659816, Welcome to join

This article starts in http://www.suwencheng.com/SEO/23.html, the original is not easy, reprint please indicate the source

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.