> 規則 適合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)