首页 新闻 会员 周边

在本地测试asp.net 伪静态

0
悬赏园豆:15 [待解决问题]

配置如下,已经引用了微软的URLRewriter.dll:

<configSections> <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" /> </configSections> <RewriterConfig> <Rules> <RewriterRule> <LookFor>~/Index.html</LookFor> <SendTo>~/Public/Index.aspx</SendTo>
    </RewriterRule>
  </Rules>
  </RewriterConfig>

  
<system.web>
    <httpHandlers>
      <add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
      <add verb="*" path="*.html" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
    </httpHandlers>
    <httpModules>
      <add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter"/>
    </httpModules>
  </system.web>

 

dotnet平台开发者的主页 dotnet平台开发者 | 初学一级 | 园豆:17
提问于:2015-08-02 10:40
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册