Necesito ayuda

Rob
09 de Marzo del 2008
Agradeceré muchísimo a quien pueda corregirme esta función...
<?php session_start(); if($_SESSION['autentificado']!="n1"){header("Location:error.php?".SID);exit();
if($_SESSION['autentificado']!="n2"){header("Location:registro.php?".SID);exit();
}}

No recuerdo como hacerla,<los que necesito es que N1 vaya a error.php y N2 a la página que se pulse..

MUCHAS GRACIAS.........