Php CI:上载到webhost时未找到My_控制器

Php CI:上载到webhost时未找到My_控制器,php,codeigniter,Php,Codeigniter,我通过CodeIgniter创建了一个应用程序,在xampp中一切正常。但当我在我的Web服务器(Hawkhost)上启动它时,我得到了以下错误: Fatal error: Class 'MY_controller' not found in /home/deremoec/public_html/an.deremoe/application/controllers/search.php on line 5 我已经将基本url从webhost重命名为我的域 我还重命名了当前Web服务器文件夹的.

我通过CodeIgniter创建了一个应用程序,在xampp中一切正常。但当我在我的Web服务器(Hawkhost)上启动它时,我得到了以下错误:

Fatal error: Class 'MY_controller' not found in /home/deremoec/public_html/an.deremoe/application/controllers/search.php on line 5
我已经将基本url从webhost重命名为我的域

我还重命名了当前Web服务器文件夹的.htaccess

为了清楚地了解

$config['base_url'] = 'http://an.deremoe.com/';
我的.htaccess

RewriteEngine On

# Put your installation directory here:
# If your URL is www.example.com/, use /
# If your URL is www.example.com/site_folder/, use /site_folder/

RewriteBase /an.deremoe/

# Do not enable rewriting for files or directories that exist
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# For reuests that are not actual files or directories,
# Rewrite to index.php/URL
RewriteRule ^(.*)$ index.php/$1 [PT,L] 

您似乎正在使用
http://an.deremoe.com/
在浏览器中。但您使用的重写库将其置于
http://whatever.com/an.deremoe/


尝试将您的RewriteBase更改为
/

您似乎正在使用
http://an.deremoe.com/
在浏览器中。但您使用的重写库将其置于
http://whatever.com/an.deremoe/


尝试将RewriteBase更改为
/

这确实是区分大小写的问题,就像zourite所说的那样。这里的问题是,您必须命名文件
MY\u Controller.php
和类
MY\u Controller
。注意大写的“C”。

这确实是区分大小写的问题,就像zourite所说的那样。这里的问题是,您必须命名文件
MY\u Controller.php
和类
MY\u Controller
。请注意大写字母“C”。

是否检查了大小写?My_controller类的php文件是My_controller.php。我应该将其更改为my_controller.php吗@Zourite您的类的名称与文件名相同吗?是的,试试小写字母,它们的MY_uu和大写字母相同。让我将它们全部缩小。@zourite尝试将MY_controller.php重命名为MY_controller.php,将MY_controller类重命名为MY_controller。。。同样的错误。你检查过这个案例吗?My_controller类的php文件是My_controller.php。我应该将其更改为my_controller.php吗@Zourite您的类的名称与文件名相同吗?是的,试试小写字母,它们的MY_uu和大写字母相同。让我将它们全部缩小。@zourite尝试将MY_controller.php重命名为MY_controller.php,将MY_controller类重命名为MY_controller。。。同样的错误。你有没有在没有重写基础的情况下尝试过?我想zourite已经把它钉在了区分大小写上了。。。所以我现在就退出…:-)你有没有在没有重写基础的情况下尝试过?我想zourite已经把它钉在了案件敏感度上了。。。所以我现在就退出…:-)