测试

URL

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" />
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>

posted @ 2018-03-20 16:00  C#的麦香园  阅读(127)  评论(0编辑  收藏  举报
测试