Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
Before also not how to pay attention to 301 redirect, first because there is no site to redirect, the second for the domain name without www I am using the forward to the domain name with www. However, after a storm, many service providers have not provided forwarding services, although the easy name can now enjoy free forwarding services, but not without the forwarding of the WWW to the WWW with the simultaneous MX record resolution, which requires MX resolution of the friend is also a big worry.
And some of the domain name in foreign countries, forwarding is not used, can only be 301 permanent redirect, or search engines are not with the WWW station and with the station of the WWW treated separately, but we are accustomed to using the domain name with www.
After watching some tutorials on the web, and based on your own practice, you finally got the 301 permanent redirection settings problem on the IIS server. The implementation method is as follows:
1. Create a new site, the corresponding directory such as E:\wwwroot\301web. The directory requires only 1 files, i.e. index.html or 404.htm. Bind the domain name to jump, as shown in figure:
2. In IIS, select the site that we have just established, right button, properties, home directory, select Redirect to, enter the URL such as: http://www.xxxx.com, also note that the following resources to select the permanent redirection options. The following figure:
3. To this end, we have completed the xxxx.com of this domain 301 redirect to www.xxxx.com work.
Note the problem:
"Enter the exact URL (X) above" option is not recommended.
The result of the election is:
When the input xxxx.com is transferred to the www.xxxx.com,
When input xxxx.com/sanwen/suibi/, go to www.xxxx.com/sanwen/suibi/.
The results of the election are:
When you enter xxxx.com or xxxx.com/sanwen/suibi/you will go to www.xxxx.com.
Well, if you just want to go to the WWW or other unused domain name to the domain name that you are using. But if you want to have done the domain name site, want to pass the weight to the new site, you can refer to the following method:
The first step, above, is mainly the second step, as shown:
Note that the part of the red font, after redirecting to the address of the $s$q characters, that is written http://www.xxxx.com$s$q. "Enter the exact URL (X) above," the option also ticked.
For $s$q characters, here's an explanation:
$S to pass the suffix of the requested URL to the new URL. The suffix is the part of the initial URL that is reserved after the redirected URL is substituted.
If the exact_destination flag is not set, the name of the resulting destination URL will have the name of the requested file (as the folder name) and the file name itself.
$Q the parameters in the initial URL, such as the QueryString parameter, are passed to the new URL, including the question mark (?).
If you do not add $s$q characters, the internal page 301 will jump to the first page, plus the $s$q character is the purpose of the page can also accurately jump to the corresponding page of the new domain.
OK, this completes the 301 permanent redirect settings, the best to test if the return is 301 value, recommend a URL: http://www.seoconsultants.com/tools/headers.
Baidu response to 301 is not as slow as expected, the next day included xxxx.com this page, the latest snapshot. Of course, the content of the snapshot is www.xxxx.com content, not 301web index.html content.
This article starts Weven into the blog, respects the author, reprint please indicate the source.
Original address: http://www.weiwencheng.com/archives/125