Virtual Host Set 301 redirect 56 host network

Source: Internet
Author: User
Keywords Virtual host virtual host 56 host network 301 redirect

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

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.