ASP,ASP.NET 网站301跳转 web.config配置文件

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="WWW Redirect" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTP_HOST}" pattern="^luofenming.com$" />
</conditions>
<action type="Redirect" url="http://www.luofenming.com/{R:0}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

如果上面代码不管用

看看有没有 装组件 如果没有组件可以这里下载  链接: https://pan.baidu.com/s/1nvC99bj 密码: 67vx

装了如下图