<?xml version="1.0"?>
<configuration>
<configSections>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler,URLRewriter"/>
</configSections>
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~/D4.asp</LookFor>
<SendTo>~/Default2.aspx?id=$1</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
<system.web>
<httpHandlers>
<add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
<add verb="*" path="*.asp" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
</httpHandlers>
<compilation debug="true"/>
</system.web>
</configuration>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="D4.asp?id=123">HyperLink</asp:HyperLink></div>
http://localhost:6220/WebSite5/D4.asp?id=123
这是伪装后的URL 能不能把后面参数给伪装掉。