A-A+
windowns2008 web.config IIS7.0 网站404及不带www网站301到带WWW设置

【注意:此文章为博主原创文章!转载需注意,请带原文链接,至少也要是txt格式!】
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <httpErrors errorMode="DetailedLocalOnly" defaultResponseMode="File" > <remove statusCode="404"/> <error statusCode="404" path="404.html"/> </httpErrors> <rewrite> <rules> <rule name="WWW Redirect" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^google.com$" /> </conditions> <action type="Redirect" url="http://www.google.com/{R:0}" redirectType="Permanent" /> </rule> </rules> </rewrite> </system.webServer> </configuration> |
布施恩德可便相知重
微信扫一扫打赏
支付宝扫一扫打赏