add a simple redirection and remove the useless error mgt middleware