我下载使用codeIgniter写一个PHP脚本。当我从本地主机上运行它,要去管理员文件夹,它本地主机再次显示。另外从我的虚拟主机上运行时,它显示了一个500内部服务器错误。
I downloaded a PHP script written using CodeIgniter. when I run it from the localhost, on going to the admin folder, it shows localhost again. Also when running from my web host, it shows a 500 Internal Server Error.
我运行 HTTP站点://本地主机/ MyProj文它的工作原理。然后,当我试图进入管理页面,该页面是的http://本地主机/ MyProj文/管理员,它提供了500内部服务器错误
I run the site from localhost/myproj It works. Then when I try to go to the admin page which is at localhost/myproj/administrator, it gives a 500 Internal Server Error.
我读到这里,这可能是由于一个错误的code在.htaccess文件中。这是我的present .htaccess文件
I read here that this might be due to a wrong code in the .htaccess file. This is my present .htaccess file
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)/$ $1 [L,R=301] RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php/$1 [L]
# Without mod_rewrite, route 404's to the front controller ErrorDocument 404 /index.php
请帮助我。我知道这可能是一个非常小的问题,但我无法找到的错误。
Please help me. I know it might be a very small problem, but I'm unable to find the error.
推荐答案500错误(与codeIgniter)的问题,有不同的Apache设置,它会显示500错误时有一个与PHP配置错误。
The problem with 500 errors (with CodeIgniter), with different apache settings, it displays 500 error when there's an error with PHP configuration.
下面是它如何引发500错误与codeIgniter:
Here's how it can trigger 500 error with CodeIgniter:
请检查您的Apache的错误日志,应该有有一些有趣的信息。
Please check your apache error logs, there should be some interesting information in there.
更多推荐
codeIgniter 500内部服务器错误
发布评论