我下载了使用CodeIgniter编写的PHP脚本.当我从localhost运行它时,在转到admin文件夹时,它再次显示localhost.此外,当从我的Web主机运行时,它显示500内部服务器错误.
我从http:// localhost/myproj运行该网站它的工作原理.然后,当我尝试访问位于http:// localhost/myproj/administrator的管理页面时,它会产生500内部服务器错误.
我在这里读到这可能是由于.htaccess文件中的代码错误造成的.这是我现在的.htaccess文件
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]
Run Code Online (Sandbox Code Playgroud)
# Without mod_rewrite, route 404's to the front controller
ErrorDocument 404 /index.php
Run Code Online (Sandbox Code Playgroud)
请帮我.我知道这可能是一个非常小的问题,但我无法找到错误.