关于配置伪静态
不神奇 2010-11-19 05:26:54 源地址: http://www.***.com/pro.aspx?uid=90
我想实现: http://www.***.com/pro_90.aspx
本来想实现.html的 但是网站租的是虚拟空间 他说不能配iis 要不配iis的话是不是只能这样http://www.***.com/pro_90.aspx
我不知道是不是哪配不对 就一直不行 大家帮忙看下
/Bin/URLRewriter.dll
config/
<configSections>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
</configSections>
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~/pro_(.*).aspx</LookFor>
<SendTo>~/pro.aspx?uid=$1</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
<system.web>
<system.web>
<httpModules>
<add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter" />
</httpModules>
加了下面这段也不行
<httpHandlers>
<add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
</httpHandlers>