Php .htaccess和CodeIgniter控制器URL的奇怪行为

Php .htaccess和CodeIgniter控制器URL的奇怪行为,php,.htaccess,codeigniter,Php,.htaccess,Codeigniter,对于我网站中的任何URL,htaccess中下面的代码似乎总是对我有用 RewriteCond $1 !^(index\.php|images|css|robots\.txt|js|files|icons|fonts|extplorer|static|google) RewriteRule ^(.+)$ /index.php?/$1 [L,QSA] 但现在我得到了一个奇怪的行为,只有控制器的索引才能工作。 所以http://www.website.com/controller正常,但http:

对于我网站中的任何URL,htaccess中下面的代码似乎总是对我有用

RewriteCond $1 !^(index\.php|images|css|robots\.txt|js|files|icons|fonts|extplorer|static|google)
RewriteRule ^(.+)$ /index.php?/$1 [L,QSA]
但现在我得到了一个奇怪的行为,只有控制器的索引才能工作。 所以
http://www.website.com/controller
正常,但
http://www.website.com/controller/method
给了我:

Fatal error: Class 'CI_Controller' not found in /home/interess/public_html/system/core/CodeIgniter.php on line 233

有什么想法吗?

发现了问题。几乎把我的眼皮摘下来后,我发现是
$config['csrf\u protection']
设置导致了这种最奇怪的行为。

您有自定义路由规则设置吗?没有。只有一个默认的\u控制器。您的
base\u url在配置文件中设置为什么?
http://www.example.org/
-直到昨天,一切正常。我今天进去,事情就这样开始了。已经在htaccess上尝试了很多东西,运气不好(