seo optimization: What should I do with the 404 page? The purpose of the 404 page is to tell the viewer that the requested page does not exist or that the link is wrong, and at the same time guide the user to use other pages of the website instead of closing the window and leaving. Many open source systems, including CMS systems and Blog systems, do not provide 404 pages or the 404 pages they provide do not meet the requirements of SEO, which greatly reduces the authority of the website.
What effect should a 404 page achieve to meet SEO requirements? Search engines use HTTP status codes to identify the status of web pages. When a search engine obtains a bad link, the website should return a 404 status code to tell the search engine to abandon indexing the link. www.liaotang.com If a 200 or 302 status code is returned, the search engine will index the link, which results in a large number of different links pointing to the same web page content.
As a result, search engines have significantly less trust in the website. ——Many websites have this problem: the 404 page returns a 200 or 302 status code instead of a 404 status code. The correct way to create a 404 page is: (only suitable for Apache server) Add code to the .htaccess file: ErrorDocument 404 /Error.html Create a simple html404 page named Error.html.www.lixublog.cn Place Error.html in If you encounter difficulties in the root directory of the website, please refer to this site: error web page, SEO 100,000 Why .htaccess file. Note: Do not redirect 404 errors directly to the homepage of the website, which will result in the homepage not being included; Do not put the main domain name in front of /Error.html, otherwise the returned status code will be 302 or 200 status code.