Muchas gracias por tu respuesta Josemi.
Al final lo he tenido que hacer con:
<META HTTP-EQUIV=Refresh CONTENT=0;URL=index.php?<?php echo SID;?> >
ya que aún con el error_reporting(E_ALL); no me daba ningún error, y teniendo activado el display_errors en el servidor. Ahora ya no hay problemas.
Lo dicho, ¡muchas gracias!