익명 사용자가/node/edit에 액세스하려고 시도하면 drupal로 이동합니다. 따라서/home 페이지로 리디렉션됩니다. 이것이 내가 확인하는 방법입니다.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