tu sai il livello utente e vuoi aggiungerci '.html'?

$redir = $livello_utente.".html";