服务器中的 zend 框架部署
我有一个服务器,我在其中上传了 zend 框架中的工作(在子域中)。文件夹名称是“访问”。
因此,当我访问: http://mysitename.com/visit 时,它会显示目录结构:
Parent Directory
application/
docs/
library/
nbproject/
public/
tests/
但是当我访问: http://mysitename.com/visit/public 时,我得到索引页面我的项目。
但我想获取我的索引页,当我输入: http://mysitename.com/visit
你可以吗请给我它需要的正确的 htaccess 吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此外,在共享托管中部署的其他方法也可以提供帮助:
特别是,tharkun的回答让我在 博客文章。
Also, these other approaches to deploying in shared hosting can help:
In particular, an answer by tharkun led me to write it up in more detail in a blog post.
您可以使用以下规则集来执行此操作,该规则集部分是 文档中描述的。
/visit 中的 .htaccess 文件:
You can do this with the following rule set, which is in part a partially modified version of the one described in the documentation.
.htaccess file in /visit: