Zend项目上的共享主机


zend project on shared hosting?

我在ubuntu OS的localhost上创建了一个zend项目,它在我的本地系统上运行得很好。现在我想把这个项目上传到网上。我购买了域名和主机。我有以下目录结构来上传文件。

/www.example.com/web/content/

所以www.example.com指向/www.example.com/web/content/文件夹。这个目录结构是不可更改的。我将所有公共文件夹文件放入/www.example.com/web/content/,将应用程序测试文件夹放入/www.example.com/web/。因此,它与我的本地系统是相同的目录,但只有公共文件夹被重命名为content文件夹。

现在主页成功显示,但每当我点击任何链接或重定向到任何其他网页,我得到以下错误。

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2 Server at example.com Port 80

你知道吗?

谢谢

发生内部服务器(HTTP 500)错误的原因有很多。您应该检查web服务器的错误日志以了解更多细节。如果您无法访问vhosts的错误日志,请让主机查看出了什么问题。

读取以下线程后解决:

http://www.zfforums.com/zend框架-通用-讨论- 1/installation -配置- 3/problems - 1 -把你-主机- 560. - html

.htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>