SEO details about the site 404 error page

Source: Internet
Author: User

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

The 404 error page of the site is the page that is returned when the user enters the wrong link. The purpose of the 404 error page is to tell the viewer that the requested page does not exist or link incorrectly, and that the user is directed to use other pages of the site instead of closing the window to leave.

404 the error page is set up as follows:

1, for the existence of Web page content due to the path or link changes caused by access, can be defined in the server IIS 404 error point to a dynamic page, in the page using 301 Permanent Redirect to the new address, when the server returned 301 status code.

2, set 404 error point to a well-designed 404.htm file, this time the page returns the 404 status code. To set the method in IIS: Open IIS Manager-click the properties of the Web site where you want to set up custom 404-click Custom Error options-select 404 Page-Select and open Edit Properties-Set "file", browse to select the 404.htm error page in advance

3, 404 point to a dynamic page, such as error.asp, if not set inside the page, just return the hint of the HTML code, will cause the page to return 200 status code, this is not true, we can display the content of the prompt, add the statement: response.status= "404 Not Found" ensures that the page returns a 404 status code.

4, Apache set 404 error page. The way to set the 404 error page for Apache server is simple, just add the following in the. htaccess file, ErrorDocument 404/notfound.php

Remember not to turn 404 errors to the home page of your site, or you may cause your home page to be K, and do not use an absolute URL as a 404 error page. 404 After the error page Setup is complete, you can check the status code, enter an http://www.seobox.org/getheader.htm page, and view the return value through an HTTP status check tool. The return value, if it is 404, is correct and incorrect if it is returned 200.

This article from the Suzhou SEO http://www.990512.com, reprint please specify.

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.