第一步

下载dll

并引用进项目

第二步

在配置项中加入

 


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

指向了本地的

http://localhost:3994/Default.aspx

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2021-10-25
  • 2022-12-23
  • 2021-10-07
  • 2022-02-02
  • 2021-12-11
猜你喜欢
  • 2021-12-28
  • 2021-11-01
  • 2021-09-30
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案