第一步
并引用进项目
第二步
在配置项中加入
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
</configSections>
制定规则
<Rules>
<RewriterRule>
<LookFor>~/tag/</LookFor>
<SendTo>~/Default.aspx</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
<add name="ModuleRewriter" type="URLRewriter.ModuleRewriter, URLRewriter" />
</httpModules>
根据以上规则我键入了
指向了本地的
http://localhost:3994/Default.aspx