codeigniter重定向不起作用

| 由于某种原因,我无法发现,codeigniter中的重定向无法正常工作。我正在死亡的白屏。 我设置了一个“测试”控制器:
class Test extends Controller {
    function Test() {
        parent::Controller();
        $this->load->helper(\'url\');
    }

    function index() {
         redirect(\'home\',\'refresh\');

    }
}
(我在没有帮助的情况下尝试了location和refresh参数)。 这是我的.htaccess文件:
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\\.php|images|css|js|robots\\.txt|favicon\\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
我以前用过所有这些,效果很好。我还能检查什么吗? 谢谢。 约翰     
已邀请:
事实证明,将对数阈值设置为4是解决此问题的答案。我能够确定我正在输出一些空间,从而阻止了重定向工作。查看日志可以发现这一点。 感谢大家的帮助,也感谢Madmartigan建议日志设置。     
尝试添加一个?在最后一个重写规则的index.php末尾,如下所示:
RewriteRule ^(.*)$ ./index.php?/$1 [L,QSA]
如果这样不起作用,请尝试将
$config[\'uri_protocol\']
(如果设置为
AUTO
)更改为:
$config[\'uri_protocol\'] = \'REQUEST_URI\';
    

要回复问题请先登录注册