我正在使用drupal转到page.tpl.php如果匿名用户试图访问/节点/编辑,以便其重定向到/ home page,这是我如何检查Drupal转到无限重定向
global $user;
if($user->uid !=1){
if($_REQUEST[q] =='node/edit'){
echo "IN IF";
drupal_goto('/', '', $fragment, 301);
}else if($_REQUEST[q] =='node/edit/'){
drupal_goto('/', '', $fragment, 301);
}
}
,但我会得到这个错误
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
我得到了类似的问题,这是解决? – leetom 2015-10-06 09:49:13