What are the benefits of setting 301 redirects? Most webmasters know that search engines can only access the stable virtual space through IP and read the content of the site, in the eyes of the search engine, the Web site without www is the main domain name. If you do not set the main domain name, search engine knot
The results will be displayed with no WWW urls. and the webmaster for various considerations want to start with WWW Web site as the main domain name, so 301 redirect function was born.
Setting 301 redirects requires http://www.aliyun.com/zixun/aggregation/14840.html "> virtual host servers configured with related components, and if the corresponding components are configured, there is not much problem, Upload the above. htaccess file file to achieve 301 functions, when purchasing a virtual host must ask the host space provider whether
This feature is configured or cannot be successfully set.
How to Operate
Create a notepad copy the following code and paste it into Notepad.
[Isapi_rewrite]
# 3600 = 1 hour
Cacheclockrate 3600
Repeatlimit 32
Rewritecond%{http:host} ^xxx.com$
Rewriterule (. *) http://www.xxx.com$1 [nc,r=301]
XXX represents your domain name
For example: When the user accesses the xxx.com, it is automatically directed to the www.xxx.com
Rename Notepad. htaccess
Upload directly to the virtual host directory is generally a web directory
Perfect support for 301 virtual host http://www.56dr.com