Unauthorized authenticated access fixed
Users redirection made protocol independant