> 规则 适合IIS6
IIS6配置文件.htaccess
~~~
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteCond %{HTTP:Host} ^xxx.com$
RewriteRule (.*) http://www.xxx.com$1 [NC,R=301]
~~~
XXX代表你的域名
把规则压缩包解压出来上传到WEB目录下
[规则下载](http://image.56dr.com/ueditor/php/upload/file/20180309/1520585741345760.rar)
> 规则 适合IIS7
IIS7配置文件 web.config
~~~
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
??<system.webServer>
????<httpRedirect enabled="true" destination="http://www.xxxx.comn" httpResponseStatus="Permanent" />
??</system.webServer>
</configuration>
~~~
XXX代表你的域名
把规则压缩包解压出来上传到WEB目录下
[规则下载](http://image.56dr.com/ueditor/php/upload/file/20180309/1520586024451403.rar)