urlrewriter 服务器上404错误
IIS7
webconfig配置如下
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~/NetBarIndex/(\w{1,20})</LookFor>
<SendTo>~/NetBarIndex/index.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/(\w{1,20})</LookFor>
<SendTo>~/ReUrl.aspx?mzpid=$1</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
<add verb="*" path="/netbarindex/*" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
<add verb="*" path="/*" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
本地没问题。放到服务器就404.。
------解决方案--------------------
IIS配置了么??
------解决方案--------------------
------解决方案--------------------
和本地一样的配置
本地测试可以,服务器上面同样可以