【发布时间】:2012-03-31 14:50:05
【问题描述】:
我正在使用Intelligencia UrlRewriter 进行 URL 重写,我遇到的唯一问题是斜杠。
我在web.config 中有这条规则
<rewrite url="~/moviesarchive/(.+)" to="~/MoviesArchive.aspx?p=$1" />
当我使用http://localhost/site/moviesarchive/1 时它有效,我处理了p 参数为空或空的情况http://localhost/site/MoviesArchive.aspx,但是当我删除尾部斜杠http://localhost/site/moviesarchive 或我使用http://localhost/site/moviesarchive/ 时,我得到@ 987654329@ 错误。我该如何解决?
【问题讨论】:
标签: asp.net iis-7 url-rewriting