我下载了一个使用 CodeIgniter 编写的 PHP 脚本。当我从 localhost 运行它时,转到 admin 文件夹时,它再次显示 localhost。此外,当从我的网络主机运行时,它会显示 500 内部服务器错误。
我从http://localhost/myproj运行该站点,它可以工作。然后,当我尝试转到位于http://localhost/myproj/administrator的管理页面时,它会给出 500 Internal Server Error。
我在这里读到这可能是由于 .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]
# Without mod_rewrite, route 404's to the front controller
ErrorDocument 404 /index.php
请帮我。我知道这可能是一个非常小的问题,但我无法找到错误。