产品导航   Products
 行业新闻   Industry News
> 胜博国际 >  新闻资讯
导入引用URLRewriter
时间:2017-05-22 08:20 作者:admin 点击:
1.导入引用URLRewriter.dll包.
2.web.config配置.
<configSections>
  <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
</configSections>

<system.web>
<httpHandlers>
  <add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
  <add verb="*" path="*.html" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
</httpHandlers>
</system.web>
3,21点赌钱在线.写规则.
格式:
<RewriterConfig>
  <Rules>
   <RewriterRule>
    <LookFor>~/file/(\d+)\.html</LookFor>
    <SendTo>~/file/page.aspx?para=$1</SendTo>
   </RewriterRule>,21点赌钱在线;
  </Rules>
</RewriterConfig>
4,21点赌钱在线.配置IIS.
WEB-属性-主目录-配置-添加-aspnet_isapi.dll-html
5.至此OK了.在开发过程中可一边写规则.一边做页面.这样儿页面中的各链接就可以很清楚的对照规则来定了.
相关新闻