下面的代码在我的htaccess似乎总是为我做的伎俩,在我的网站上的任何URL
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_protection']
设置导致了这个最奇怪的行为。