0

I created a zend project on localhost on ubuntu OS and it is working perfectly on my local system. Now I want to upload this project online. I purchased domain name and hosting. I got following directory structure to upload files.

/www.example.com/web/content/

So www.example.com is pointing to /www.example.com/web/content/ folder. This directory structure is unchangeable. I put all public folder files to /www.example.com/web/content/ and application, library and tests folders into /www.example.com/web/. So it is the same directory as my local system but only public folder is renamed to content folder.

Now homepage is successfully shown but whenver I click any link or redirect to any other webpage, I got following error.

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

Any idea ?

Thanks

4

2 回答 2

1

发生内部服务器 (HTTP 500) 错误的原因有很多。您应该检查您的 Web 服务器的错误日志以获取更多详细信息。如果您无权访问您的虚拟主机的错误日志,请询问您的主机看看出了什么问题。

于 2011-12-09T14:11:31.450 回答
0

阅读以下线程后解决:

http://www.zfforums.com/zend-framework-general-discussions-1/installation-configuration-3/problems-1and1-hosting-560.html

所以它正在使用以下.htaccess工作:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
于 2011-12-10T15:30:20.970 回答