vs2008 + iis5.1 实现URL重写 闹心 高手帮忙
配置文件<?xml version="1.0"?>
<configuration>
<configSections>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter"/>
</configSections>
<RewriterConfig>
<Rules>
<!--http://localhost:4361/MyURLRewrite/Default2.aspx?id=123 重写为 http://localhost:4361/MyURLRewrite/123.html -->
<RewriterRule>
<LookFor>~/(\d{0,999999})\.html</LookFor>
<SendTo>~/Default2.aspx?id=$6</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
<appSettings/>
<connectionStrings/>
<system.web>
<compilation debug="false">
</compilation>
<authentication mode="Windows"/>
<httpHandlers>
<add verb="*" path="*.html" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
</httpHandlers>
</system.web>
<system.codedom>
</system.codedom>
<system.webServer>
</system.webServer>
</configuration>
--------------------编程问答-------------------- 帮顶!! --------------------编程问答-------------------- 用 isapirewrite 很简单的 比这个简单很懂还好用
补充:.NET技术 , 非技术区