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]
我以前用过所有这些,效果很好。我还能检查什么吗?
谢谢。
约翰
没有找到相关结果
已邀请:
2 个回复
坝镰补翔奋
玖料萄
如果这样不起作用,请尝试将
(如果设置为
)更改为: