In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
What this article shares with you is about how the virtual host does 301 redirection. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.
301Jump refers to the permanent redirection of the page to ensure that traffic is transferred to the latest version of URL.
Jump is a kind of http return code, the so-called http return code is to tell users and search engines the status of the URL currently visited. 301 means that the current page has been permanently transferred, which means that the previous link to the old page should be updated to the jump page address.
In addition to using 301 when moving old pages to new pages, 301 has many other application scenarios, such as switching to a new domain name to clean up dynamic URL, switching to a shorter and more friendly version to prevent content duplication, and so on.
How to set 301 jump for virtual host
In most cases, the jump can be set by modifying the server-side .htaccess file. .htaccess is a simple text file that can be edited through notepad or WordPad, for example.
For example, if I want to jump the page http://www.ABC.com/old.html to http://www.ABC.com/new.html, I just need to add a sentence to the .htacceess file: _ redirect 301 / old.html http://www.ABC.com/new.html.
"_ redirect 301" tells the user that the browser client and search engine are 301redirected.
"/ old.html"-provide the old page address
"http://www.ABC.com/new.html"- provides a new page address (absolute address).
In addition, if there are multiple page jumps, each jump will have to add a new record.
The above is how the virtual host does 301 redirection. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please 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.