In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you how to set up the virtual host site 404, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
For the SEO of any website, the setting of 404 pages is extremely important, which is not only a way to avoid being punished by the engine, but also a way to avoid user loss of traction traffic.
When there is a problem with the web page of the virtual host and cannot be displayed properly, or if the user enters the wrong URL, if there is a 404 page, the spider will know that the page URL has expired, will no longer index the web page, and will report back to the data center that it will be deleted incorrectly.
Without setting 404, the error of the page will be displayed normally, and the engine and users will think that the page is wrong or the content is bad and have a bad experience, which will have a big blow to the weight of the page. In addition to protecting the weight of the site, 404 pages can also divert users who were originally logged on to the wrong page to the new page, thus avoiding the loss of users. It can be seen that 404 pages are of great use to the website.
How to set up the Windows virtual host:
1. Make 404 pages locally
Common error pages are:
400.htm: incorrect request
404b.htm: error message not found in the file
403-6.htm:IP address rejected
500-13.htm: system busy.
You need to create an error page on your local computer, such as 404.htm, and then upload it to the webspace.
two。 Go to the host control panel, click "error Page definition" and upload the 404 page.
Linux virtual host setting method:
1. Add the following statement to the .htaccess file:
ErrorDocument 404 / 404.html
If there are no files in the directory of the website you need to modify, you can create one yourself.
two。 Create the 404.html file and put it in the root directory of the website
If you want to change it to another error page, you only need to modify the file corresponding to the relevant error code through FTP.
The above content is how to set up the web site 404. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.