IIS 7 中的 ISAPI_Rewrite
我一直在使用 Helicon 的 ISAPI_Rewrite (http://www.helicontech.com/isapi_rewrite/)在 Server 2003 机器上使用多年,并且一直很幸运。
我正在将 2003 机器上的所有站点迁移到新的闪亮的 Server 2008 机器上。 我不想购买新的许可证,而且我听说 IIS 7 将具有内置功能。
所有重写都在 .htaccess 配置文件中设置,就像 Apache 的 mod_rewrite 一样。
有谁知道此功能是否已融入 IIS 7 中,如果是的话,您知道有什么好的文章解释如何启用它吗?
谢谢。
I've been using ISAPI_Rewrite from Helicon (http://www.helicontech.com/isapi_rewrite/) on a Server 2003 box for years and have always had good luck with it.
I'm migrating all the sites on the 2003 box to a new shiny Server 2008 box. I would prefer to not purchase a new license and I have heard that IIS 7 will have capability built in.
All the rewrites are setup in a .htaccess configuration file just like mod_rewrite for Apache.
Does anyone know if this capability ever got baked into IIS 7 and if so do you know of any good articles that explain how to get it all enabled?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
正如您提到的,IIS7 确实具有内置功能。 您可以使用自定义 HttpModule,如 提示/技巧:使用 ASP.NET 重写 URL。
或者,您可以安装 IIS7 重写模块 如此处所述。
IIS7 does have the functionality built in, as you mentioned. You can either use a custom HttpModule, as described in Tip/Trick: Url Rewriting with ASP.NET.
Alternatively, you could install the the IIS7 Rewrite Module as described here.
是的,请查看 IIS 7 URL 重写模块。
Yes, check out the IIS 7 URL Rewrite Module.
在安装应用程序请求路由器 (ARR) IIS 扩展及其所有依赖项之前,它不是内置的,您必须按特定顺序执行这些操作:
然后是ARR模块。
每个都需要从 download.microsoft.com 单独下载,但全部都是免费的。
参考:https://blogs. technet.microsoft.com/erezs_iis_blog/2013/11/27/installing-arr-manually-without-webpi/
It isn't built-in until you install the Application Request Router (ARR) IIS Extension, and all of its dependencies, which you have to do in a specific order:
Then the ARR module.
Each requires a separate download from download.microsoft.com, but all are free.
Reference: https://blogs.technet.microsoft.com/erezs_iis_blog/2013/11/27/installing-arr-manually-without-webpi/