MENU service case
 Website construction website design Beijing website construction high-end website production company Shangpin China
We create by embracing change
360 ° brand value__
simplified Chinese character
Simplified Chinese English

Shangpin China Joins Hands with Beisheng Internet to Create a New Chapter in Website Construction

Type: Shangpin Dynamic Learn more

Search optimization and 404 errors

Source: Shangpin China | Type: website encyclopedia | Date: February 28, 2012
Beijing website construction The company pursues products in China: administrators often ignore the fixed Website production 404 error SEO potential. In fact, paying more attention to 404 errors can help your website get a better ranking in search engines and contribute to a better user experience.

This tutorial is about Seo website optimization Manage 404 errors.

Tip # 1: An elaborately designed 404 page

404 pages are URLs that any user will not find on your server when landing. The most common error you may encounter is "404 not found." The first step is to create a user-friendly 404.

How do you create a user-friendly 404 page? You should keep four principles in mind. The first page should explain why users log on to the page, not the page they intend to reach. Secondly, it should include the search box of the website, telling the user to type in any relevant keyword to return to the relevant position. Third, it should be as simple as possible; For this reason, the 404 page should not contain any server related errors. Finally, a user-friendly 404 page should include other important website navigation components. This means that the sidebar, footer and header should be included so that users can easily browse other pages on your site.

The following is a user-friendly 404 example:

If you are a beginner, you may want to know how to see your 404 error page. It's very simple. Start the browser, type your domain in its address bar, and then randomly type any letter. The generated page should be 404, because it does not exist on your server. For example, if your domain name is //www.example.com/ , you can see your 404 error, if you type:

//www.example.com/fdfdfd

Tip # 2: Make sure your 404 error page does provide a 404 header status

Not all 404 error pages provide a 404 header status. This state changes fundamentally. Search engine robots and other robots "page not found." For example, when Google uses this server header state, it deletes outdated and deleted pages from your website. Suppose you want to delete 30 websites; Now these 30 websites return a 404 header status. When Googlebot re crawls these pages, they have not found the 404 statement yet. It will only be a matter of time before these pages are deleted from the Google index, without the need to clear the URL submitted by you in the Google Webmaster tool (source: //www.mattcutts.com/blog/overdoing-url-removals/ )。

OK, can you ensure that your 404 error page will really return a 404 header status? Follow the steps below:

1。 Go to this server header for status check: //www.seoconsultants.com/tools/headers

2。 Enter the URL of your 404 page (or the URL should return 404).

3。 Click the "Check Server Header" button.

4。) You should see a "404" as the head state. For example, see the following screenshot:

From the screenshot above, we can be sure that the URL is: //www.php-developer.org/dfdsfdf It does not exist, and returns 404 header not found status.

If your 404 page does not return a 404 header status, what should you do?

Htaccess and PHP methods can be used.

1。 Using the htaccess file, you can define your 404 error file:

ErrorDocument 404/404.php error of

Note: Error 404.php 404 custom page.

2。 Using PHP to dynamically allocate page 404, the header status is not found:

<PHP?
Header ("HTTP/1.1 404 not found");
sign out;
?>

If the above methods fail, it is time to contact your web developer to resolve the 404 error. Or you may need to contact your network hosting agency. This is often due to incorrect server configuration.

What happens if your 404 error page does not return and you do not find the 404 header status? This will create a problem with the search engine. For example, if you are deleting thousands of URLs, you are looking forward to returning a clean 404. However, search engines only trust 404. If the status of the server header is returned, a 404 should also be returned. In this case, if it is not returned as 404, 200 OK status. Then these pages cannot be removed from the Google search engine index.

This article was published on Beijing website production Company Shangpin China //ihucc.com/
Source Statement: This article is original or edited by Shangpin China's editors. If it needs to be reproduced, please indicate that it is from Shangpin China. The above contents (including pictures and words) are from the Internet. If there is any infringement, please contact us in time (010-60259772).
TAG label:

What if your website can increase the number of conversions and improve customer satisfaction?

Make an appointment with a professional consultant to communicate!

* Shangpin professional consultant will contact you as soon as possible

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]

Communicate with professional consultants now!

  • National Service Hotline

    400-700-4979

  • Beijing Service Hotline

    010-60259772

Please be assured to fill in the information protection
Online consultation

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]