Don't add port number to url for https

The redirect URL usually doesn't include the port 443 for an HTTPS url.