问题描述
我有一台服务器,在那里我已经上传我的Zend框架的工作(在一个子域)。文件夹名称为参观。
I have a server, where I have uploaded my work in zend framework(in a subdomain). the folder name is 'visit'.
所以,当我去: http://mysitename.com/visit ,它显示了一个目录结构
So, When I go to: http://mysitename.com/visit, it shows a directory structure:
Parent Directory
application/
docs/
library/
nbproject/
public/
tests/
但是,当我去: http://mysitename.com/visit/public ,我得到我的项目的索引页。
But when I go to: http://mysitename.com/visit/public, i get the index page of my project.
不过,我想我的索引页,当我输入: http://mysitename.com/visit
But I want to get my index page , when I type: http://mysitename.com/visit
您可以请给我正确的htaccess的它需要?
can you please give me the correct htaccess it need?
推荐答案
另外,这些其他的方法来部署在共享主机可以帮助:
Also, these other approaches to deploying in shared hosting can help:
- http://stackoverflow.com/questions/1115547/zend-framework-on-shared-hosting
- http://www.alberton.info/zend_framework_mod_rewrite_shared_hosting.html
- http://akrabat.com/zend-framework / Zend的骨架上,一个共享的主机/
- 的
- http://stackoverflow.com/questions/1115547/zend-framework-on-shared-hosting
- http://www.alberton.info/zend_framework_mod_rewrite_shared_hosting.html
- http://akrabat.com/zend-framework/zend-framework-on-a-shared-host/
- http://www.ttech.it/en/article/2010/03/zend-framework-all-projects-files-on-document-root/
在特别地,answer通过tharkun 促使我写了详细的的。
In particular, an answer by tharkun led me to write it up in more detail in a blog post.
这篇关于Zend框架的部署在服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!