我的 codeigniter v.3 网站无法在本地主机上运行良好的肝服务器上运行

my codeigniter v.3 website not working on liver server which has fine on localhost

我最近换了 ci v.3 我遇到了问题 当我点击 url 时,我的实时服务器重定向到我的 404 错误页面 它在本地主机上非常好,但在服务器上不起作用。 我的 .htaccess 文件是

RewriteEngine on
RewriteCond  !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/ [L]




# 2 ---- Prevent directory file listing in all of your folders ----

IndexIgnore *

尝试将文件夹控制器和模型的文件重命名为 ucfirst。

请参考http://www.codeigniter.com/userguide3/installation/upgrade_300.html#step-2-update-your-classes-file-names

只需重命名您的控制器文件名: 例如:about.php 到 About.php