SEO optimization-Set 404 error page

Source: Internet
Author: User

404 error page, refers to the page in the access time, the browser shows the requested URL does not exist, this page may be the site itself is not, it may be deleted, is called the 404 error page.

The purpose of the 404 error page is to tell the user 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.

If you want to get the trust of search engines, a good 404 page is the most basic requirement. We can make this error page flesh and blood, so that it becomes an information page, guide visitors continue to visit the site. And don't let it be blank--"Sorry, the page you visited does not exist." This is a good way to enhance the user experience.

404 How to set the error page:

    1. 404 the contents of the error page, you can easily determine. You can design a Web page of your own, you can also find any one of the more famous sites, its 404 pages to Save as down, modify the above text;
    2. Then upload to your site root directory;
    3. Modify your. htaccess file to write code: ErrorDocument 404/404.html.
      Cases:
      Rewriteengine on
      ErrorDocument 404/404.html

Note the point:

    1. 404 page, do not jump directly to the homepage, but to guide the user to click Back to the Home page. The consequence is, which could lead to the homepage being k;
    2. /404.html front not with the main domain name, no return of the status code is 302 or 200 status code;
    3. The 404 page name can be set to 404.html or set to another. Note that the virtual host background is related to the prompts. If you encounter difficulties, you can ask the host technician to get help;

Related questions:
What about the 404 error page effect to qualify for SEO? The

Search engine identifies the state of a Web page through an HTTP status code. When the search engine gets a bad link, the site should return a 404 status code, telling the search engine to discard the index on the link. If you return a 200 or 302 status code, the search engine will index the link, which leads to a large number of different links pointing to the same page content. As a result, search engines have significantly reduced their trust in the site. Many websites have this problem: the 404 error page Returns a 200 or 302 status code instead of a 404 status code.

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.