Avoid dead links teach you to do 404 error pages

Source: Internet
Author: User

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

First of all, I would like to state that I am a novice. I hope this article will be helpful to those who are novice friends.

Dead link refers to those failed links, open links. Many stations have dead links, especially those who re-revision of the station, the previous search caused by the page is not open now, dead link to the site's impact is very large.

Dead links to search engines is very unfriendly, spiders climb to the dead link, there is no export link crawled out, so this site will not be popular search engine like, the weight of the site will be reduced, not good rankings.

For users, the existence of dead links, the user experience is not good, more words will make users less loyal.

Best, the easiest way is to make a 404 error page in the website.

404 error page is equivalent to a navigation bar, but the user clicks or search engine climbed to the dead link, can have a link back to other normal page. Although this is a small detail, but the SEO is actually a very important role.

So how do you make a 404 page? Below I take my breast network as an example to say how to do 404 pages.

1 build A. htaccess file with a simple code that says "ErrorDocument 404/404.htm directoryindex 404.htm".

2 Create a new 404.htm file. Note that the. htm file, not. html. These two still have a little gap. The first time I did it was to use HTML. Then do a link navigation in your. htm file. is to make a link so that users or spiders can click into the normal page to go, is generally linked to the homepage up. My station made a very simple 404.htm file. Still do not understand the friend, can go to my breast net www.ahrxw.com then add 404.htm, to see the effect, very simple, a look will understand.

3 the built. htaccess files and 404.htm files are uploaded to the root directory of the Web site.

4 last step, go to your virtual host to set up custom error pages. Choose to use 404.htm files from the Web directory to customize the content.

In this way, a friend with a virtual host has done a 404 error page. With a friend of the server to do 404 with good do, do not need to build. htaccess file, just do a 404.hml file to the root directory, and then in IIS traffic set the error page on the line.

Website optimization is a meticulous life, I hope that we continue to hold on for a long time!

This article original mammary gland www.ahrxw.com reprint please leave the link, thanks! QQ Group: 63380843

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.