PHP Zend/MVC没有mod_rewrite [英] php Zend / MVC without mod_rewrite
问题描述
我已经在网络上的许多博客中看到了它,但是我认为应该在这里进行讨论. 当我们在PHP中拥有MVC框架(我对ZEND感兴趣)但主机不提供mod_rewrite时,该怎么办? 是否有任何捷径"?我们可以通过任何方式转移控制权(以便在页面之间发生映射)吗?有任何想法吗? 谢谢:-)
I've seen it mentioned in many blogs around the net, but I believe it shoud be discussed here. What can we do when we have an MVC framework (I am interested in ZEND) in PHP but our host does not provide mod_rewrite? Are there any "short-cuts"? Can we transfer control in any way (so that a mapping may occur between pages)? Any ideas? Thank you :-)
推荐答案
Zend框架应在没有mod_rewrite
的情况下工作.如果您可以使用自己的URL:看起来更像是"/path/to/app/index.php/controller/action".如果您使用了mod_rewrite,则可以删除"index.php"位,但是它也可以使用.
Zend framework should work without mod_rewrite
. If you can live with your URL:s looking more like "/path/to/app/index.php/controller/action". If you had mod_rewrite you could do away with the "index.php" bit, but it should work with too.
设置接收index.php部分的路由完全是问题.
It's all a matter of setting up the routes to accept the index.php part.
这篇关于PHP Zend/MVC没有mod_rewrite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!