Many times, the upgrade of the site is also likely to cause the Site directory or page location changes, so that the site has been indexed by the search engine data does not exist. If the search contains a large number of Web pages disappear at the same time, will be in search of the site in the weight of the impact, here can be used 301 redirect function to modify the site, my QQ Resource Network http://www.huixing88.cn is this solution, I hope to everyone a bit with QQ resource Network
For some changes in the domain name, such as the www. Domain name, Com/bbs replacement for the BBS. Domain name. com, also can use 301 redirect function, it represents a permanent site transfer, 301 redirect is the Web page change the address does not damage the search engine friendliness of the best solution. QQ Resource Network
IIS Server 301 redirects by selecting the Redirect to URL feature in the Web site properties, and then setting the redirected URL address, and then checking the resource Permanent redirect check box. QQ Resource Network
If the server supports the. htaccess feature for Apache or virtual hosts, you can simply write the following code to the. htaccess file by setting the file for 301 redirects to the file or directory. QQ Resource Network
Redirect permanent/http://the address to which the contents of the directory are redirected/;
REDIRECT permanent/test.html http://test.html content redirected to the address/;
For a Dynamic Web page file, you can add the following code to the Web page file to set it up.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.