与 IIS7 的 htaccess 等效吗?

发布于 2024-09-25 12:58:30 字数 368 浏览 4 评论 0原文

这些重写规则的等价物是什么:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /index.php [NC,L]

在 IIS7 中?

这些是 Zend Framework 的重写规则,它们在 Apache 下工作。我尝试使用 URL 重写模块将它们导入 IIS7,但导入失败(有两个错误)。

有人可以帮我解决这个问题吗?

What is the equivalent of these rewrite rules:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /index.php [NC,L]

In IIS7?

These are rewrite rules for Zend Framework and they work under Apache. I tried importing them into IIS7 with the URL rewrite module but the import fails (there are two errors).

Could anybody help me out with this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文