我正在使用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