关于url rewriter 的奇怪问题! 急!!在线等!!
我今天使用url rewriter,用的方法是使用 Intelligencia.UrlRewriter.dll 然后在web.config 中进行的相关配置,
<configSections>
<section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
</configSections>
<rewriter>
<rewrite url="~/default/(.+)" to="~/default.aspx?id=$1" />
</rewriter>
<httpModules>
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter"/>
</httpModules>
然后在页面default.aspx上测试了一下,html如下:
... ... ...
<a href="default/111.aspx">111</a><br />
<a href="default/222.aspx">222</a><br />
<a href="default/333.aspx">333</a><br />
<a href="default/444.aspx">444</a><br />
... ... ...
然后点击一下链接,ie地址栏中显示 http://localhost:1234/testURLRewriter/default/111.aspx,很正常,
再点击一下链接,地址栏中却变成了http://localhost:1234/testURLRewriter/default/default/111.aspx
然后依次类推,每点击一下地址就增加一个/default,
这是什么毛病啊?好奇怪。。。。。。。。。。