用于在 1and1 上上传 Zend Framework 项目的 .htaccess 文件

发布于 2024-09-28 19:17:35 字数 518 浏览 1 评论 0原文

我遇到的问题是,我正在尝试将 Zend Framework Web 应用程序放到网上,虽然它在我的本地主机上完美运行,但它在网上有很多错误。我知道 Zend 网站的运行需要满足某些条件。

  • 我需要文档根目录为 serwano.com/staging/fbr
  • 我需要 php5
  • 我需要 mod 重写

我需要文档根目录为 serwano.com/staging/fbr。 我有一个测试网站,设置了以下文件夹:

/webroot(serwano.com)      
    /staging  
       /other test site  
       /other test site  
       /fbr  
           /application  
           /library  
           /public 

我需要帮助确定适当的 .htaccess 文件是什么,以便我的 Zend Web App 能够工作。

The problem I have is that I am trying to put a Zend Framework web application online and while it works perfectly on my localhost, it has a lot of errors online. I know that there are certain things required for a Zend website to work.

  • I need the document root to be serwano.com/staging/fbr
  • I need php5
  • I need mod rewrite on

I need the document root to be serwano.com/staging/fbr.
I have a testing website with the following folder set up:

/webroot(serwano.com)      
    /staging  
       /other test site  
       /other test site  
       /fbr  
           /application  
           /library  
           /public 

I need help determining what the appropriate .htaccess file would be so that my Zend Web App will work.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

站稳脚跟 2024-10-05 19:17:35

您可以将域的 webroot 指向 FTP 上传目录内的任何文件夹,因此您可以执行以下操作:

+ userhome
|- serwano.com
|-- staging
|-- test
|-- production 

然后转到 1&1 控制面板并为 serwano.com 创建三个子域。应该有一个选项将每个子域的 webroot 指向适当的文件夹,例如

staging.serwano.com // point it to the staging folder
test.serwano.com    // point it to the test folder
www.serwano.com     // point it to the production folder

是否可以使用 .htaccess 和 mod_rewrite 取决于您的 webhosting 包的配置方式。请联系 1&1(做好承受痛苦的准备),看看是否可行。如果不可能,Google 有许多 Zend Framework without . htaccess。您不需要 mod_rewrite,也不需要 .htaccess。这只是推荐的。

You can figure the webroot for a domain to point to any folder insider your FTP upload directory, thus you can do

+ userhome
|- serwano.com
|-- staging
|-- test
|-- production 

Then go to your 1&1 control panel and create three subdomains for serwano.com. There should be an option to point each subdomain's webroot to the appropriate folder, e.g.

staging.serwano.com // point it to the staging folder
test.serwano.com    // point it to the test folder
www.serwano.com     // point it to the production folder

Whether you can use .htaccess and mod_rewrite depends on how your webhosting package is configured. Contact 1&1 (prepare for pain) to find out if that is possible. If it is not possible, Google has a number of results for Zend Framework without .htaccess. You do not need mod_rewrite, nor .htaccess. This is just recommended.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文