在合适位置添加如下代码,地址记得根据自己实际情况进行修改:
<rewrite> <rules> <rule name="301-fuwuqijia.com" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^fuwuqijia.com$" /> </conditions> <action type="Redirect" url="http://www.fuwuqijia.com/{R:0}" redirectType="Permanent" /> </rule> </rules> </rewrite>