web.config url重写
<configSections>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
</configSections>
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~/download/th.ipa</LookFor>
<SendTo>~/download/appfile.ashx?type=3</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
net 4.0 handlers配置
<system.webServer>
<handlers>
<add name="ipa" verb="*" path="/download/th.ipa" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
</handlers>
</system.webServer>
net 3.5以下 handlers配置
<system.web>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
</httpHandlers>
</system.web>