404 page optimization plays a vital role in the user experience

Source: Internet
Author: User
Keywords Cannot be ignored
Tags .mall .url access asp code content entered the error

Summary: SEO need to start from a small, any little detail will have a huge impact. Error links are difficult to completely avoid in the site, 404 pages as the error link return page in the user experience played a crucial role. 404 The Role of the page: when the user entered the wrong

SEO need to start from small, any small details will have a huge impact. Error links are difficult to completely avoid in the site, 404 pages as the error link return page in the user experience played a crucial role.

404 page Function: The page returned when the user entered the wrong link.

404 The purpose of the page: friendly to let the viewer know that its access to the page does not exist or link parameter errors, the important point is that the 404 error page is not to let users know that the access page does not exist on the closed page, but to guide users to visit other pages to ensure the existence of IP.

Today many open source blog, CMS, etc. do not provide 404 pages, so that 404 of pages have lost their role, can not play a SEO optimization effect, so that not only to reduce user experience, but also to the authority of the site greatly compromised.

How to make 404 pages to SEO requirements, improve the user experience?

There are many kinds of HTTP status codes, common such as:

200 successful processing of requests

204 Processing Success But content

301 Request Web Page permanent move

302 Request Web page temporarily moved to new location (save original URL in Search engine index)

500 Server Error

503 Server is unusable (overload or maintenance).

When the search engine access page Gets the wrong link, it returns a 404 status code to let the search engine know the URL error and discard the index on the URL. Conversely, if returned 200 or 302 status code, the search engine will be indexed for the URL, if a large number of error URLs will make the search engine disgusted, so that the site's trust greatly reduced.

Set up the correct 404 page: (Apache server)

Add code to the. htaccess file: errordocument 404/404.html (404 error can not be directly to the homepage of the site, which will lead to not be included in the homepage.) The/error.html is not preceded by a primary domain name, otherwise the status code returned is 302 or 200 status code. )

Create an HTML page named 404.html

Place the 404.html in the site root directory

Set up the correct 404 page: (iis/. Net)

First, modify the settings for the application root directory and open the Web.config file editor, adding the following:

Error.asp is the default 404 page for the system, notfound.asp is a custom 404 page and can be modified with the appropriate file name.

Add in Custom 404 page notfound.asp:

<% Response.Status = 404 Not Found%>

Allow IIS to correctly return a 404 status code. Setup is complete now

Use Redirection for 404 pages

When a user accesses the error link to display the 404 error page, it usually closes the page directly, after all, there is no content on the page that they need. At this point can be a 404 page reset, but it is necessary to leave a choice for the user, otherwise it will reduce the user experience.

You can write on page 404: The page is not found! 5 Seconds to jump to the home page. Give the visitor 5 seconds to read the information and then jump.

Used in the following manner.

<html>

<head>

<meta http-equiv= "Refresh" content= "5; Url=http://www.souduoduo.com ">

</head>

<body>

The page was not found! 5 Seconds to jump to the home page.

</body>

</html>

The content is followed by a countdown number of seconds, followed by a jump address.

Reprint Please specify: http://www.souduoduo.com.

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.