【发布时间】:2011-05-07 06:32:09
【问题描述】:
我已经从这里实现了“方法 3:使用 HttpModule 使用 IIS7 执行无扩展 URL 重写”: - http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx
这基于 URLRewriter 模块: - http://urlrewriter.net/
它似乎在我的本地环境中工作,但在生产服务器(运行 IIS 7)上显示“404 - 找不到文件或目录”页面。
我在 Google 上搜索过,似乎找不到解决方案。
最后,我们回到 IIS 6 并按照此处的说明进行操作: - http://urlrewriter.net/index.php/support/installation/windows-server-2003
但是有一天我们可能不得不在共享主机环境中升级到 IIS 7,同样的问题会再次出现!
【问题讨论】:
-
托管老兄让它在 IIS 7 中工作。我得到的关于他所做的只是“HTTP 处理程序需要与不同的应用程序池进行通配符映射以使其在 IIS 7 中工作”。希望这可以帮助那些在 Google 上找不到任何东西的人。
标签: asp.net iis-7 url-rewriting http-status-code-404