主机上的 Zend App 没有 mod_rewrite 也没有虚拟主机 [英] Zend App on host without mod_rewrite and no virtual hosts
问题描述
我尝试将本地开发的应用程序导出到共享主机环境.通过这样做,我发现我可以使用 mod_rewrite 或虚拟主机.现在我的问题是 a) 我如何更改我的应用程序来部署它 b) 我如何以安全的方式通过 c) 让 URL 看起来尽可能好.
I try to export my local developed app to a shared hoster environment. By doing this I figured out that either I could use mod_rewrite nor virutal hosts. Now my question is a) how do I have to change my app to deploy it and b) how do I do it in a secure way by c) letting the URL looking as nice as possible.
Please be more specific as here or provide an example like here.
谢谢!
本地设置(使用 mod_rewrite 和虚拟主机):
root
+-application
+-configs
+-controllers
+-forms
+-layouts
+-models
+-views
+-Bootstrap.php
+-public
+-css
+-dl
+-js
+-img
+-index.php
+-.htaccess
+-library
+-...
推荐答案
Rob Allen 也有一篇关于在没有 mod_rewrite 的情况下设置 ZF 的文章
Rob Allen has an article as well about setup ZF with out mod_rewrite
http://akrabat.com/zend-framework/zend-framework-urls-without-mod_rewrite/
这篇关于主机上的 Zend App 没有 mod_rewrite 也没有虚拟主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!