Resolved an error redirecting to HTTPS