How to set cloud server 301? The so-called 301s, which is the permanent redirect. Web site on the cloud server when establishing the need for the main domain name be normalized, centralized operation to prevent the separation of powers, it is necessary to set up a 301 redirect site.
Usually redirect server 301 is provided the steps of:
1, with the domain name "www" and the domain name without the "www" and parsing all bound to the leased cloud host.
2, Linux host set 301 redirect method
Create a text file on your computer, and then name suffix .htaccess, add the following code into the open after saving (abc remember to change your domain name), after saving uploaded to the root directory of your site using FTP software you can!
RewriteEngine on
RewriteCond %{http_host} ^abc.com[NC]
RewriteRule ^(.*)$ http://www.abc.com/$1 [L,R=301]
3, Windows hosts 301 redirect setting method
Create a text file on your computer, then renamed httpd.ini, add the following code into the open after save (remember to abc into your own domain name)
RewriteCond Host:^abc\.com$
RewriteRule (.*) http\://www\.abc\.com/$1 [R,I]