-1

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

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




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

IndexIgnore *
4

2 回答 2

2

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

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

于 2015-04-04T10:17:56.140 回答
0

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

于 2019-01-19T09:55:17.257 回答