.htaccess 在codeigniter中的应用程序文件夹外加载项目

.htaccess 在codeigniter中的应用程序文件夹外加载项目,.htaccess,codeigniter,.htaccess,Codeigniter,大家好 我在加载应用程序文件夹外的项目时遇到问题,如果我尝试浏览其他非CI项目的页面,则会出现此错误 Fatal error: Class 'CI' not found in /home/gcceclc/public_html/application/third_party/MX/Modules.php on line 91 在应用程序文件夹之外,我有另一个文件夹,它包含我的其他页面 home/gcceclc/public_html/other_project_folder_without_c

大家好

我在加载应用程序文件夹外的项目时遇到问题,如果我尝试浏览其他非CI项目的页面,则会出现此错误

Fatal error: Class 'CI' not found in /home/gcceclc/public_html/application/third_party/MX/Modules.php on line 91
在应用程序文件夹之外,我有另一个文件夹,它包含我的其他页面

home/gcceclc/public_html/other_project_folder_without_ci
我想我的.htaccess有问题,因为在我重写.htaccess之前,我可以浏览我的另一个项目


如果有人知道如何解决这个问题,请分享。提前感谢。

您是否尝试过更改主index.php文件中应用程序目录的位置

$application_folder = 'application';
换成

$application_folder = '../application';

这就是解决我问题的方法

RewriteBase //

我以为这是我的.htaccess

我到底在哪里可以看到它?抱歉,我对index.php文件中的codeigniter不熟悉,它位于主目录中。