Non puoi fare un redirect dopo avere dichiarato un header HTTP