Adding support for HTTP redirect to HTTPS