1:
<configSections>
<section name="CustomConfiguration" type="URLRewriter.Config.UrlsSection, URLRewriter"/>
</configSections>
2:
<system.web> 下<httpModules>新增
<add type="URLRewriter.RewriterModule, URLRewriter" name="RewriterModule"/>
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
3:
<system.webServer>这个节点下
<modules runAllManagedModulesForAllRequests="true">
<add name="URLRewriter" type="URLRewriter.RewriterModule" preCondition="managedHandler"/>
</modules>
最后
<CustomConfiguration>
<urls>
<add virtualUrl="~/douyu/wuyujie" destinationUrl="~/Home/Index"/>
</urls>
</CustomConfiguration>