与 IIS7 的 htaccess 等效吗?
这些重写规则的等价物是什么:
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我从未在 IIS 中使用过 ZF,但我想这会对您有所帮助
http ://framework.zend.com/wiki/display/ZFDEV/Configuring+Your+URL+Rewriter
或
http://akrabat.com/zend-framework/zend-framework-url-rewriting-in-iis6/
或
http://iirf.codeplex.com/
Rob allen 也发表了非常好的文章“Zend Framework URLs without mod_rewrite”
http://akrabat.com/zend-framework/zend-framework-urls-without-mod_rewrite/
I had never use ZF with IIS but i guess that would help you
http://framework.zend.com/wiki/display/ZFDEV/Configuring+Your+URL+Rewriter
or
http://akrabat.com/zend-framework/zend-framework-url-rewriting-in-iis6/
or
http://iirf.codeplex.com/
also Rob allen had very nice article "Zend Framework URLs without mod_rewrite"
http://akrabat.com/zend-framework/zend-framework-urls-without-mod_rewrite/