Fixed redirection http<->https