Beijing website constructionThe company pursues products in China: administrators often ignore the fixedWebsite production404 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.
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/dfdsfdfIt 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.