Search code examples
httpsgoogle-cloud-platformgoogle-cloud-storageload-balancinghttp-redirect

Static Website Redirect HTTP to HTTPS with GCP Load Balancer with


I need to redirect my website from http to https, I have my static website in Google Cloud Storage Bucket pointed to Load Balance with http & https enabled.

Example:

http://ex.com = > https://ex.com
http://www.ex.com = > https://www.ex.com

The https://ex.com, https://www.ex.com both work just fine, however, I just need the http redirect so that I can reach Secure Service

Since I am having a static website I hope I can only handle this in Load Balance, Can some one help me with this.


Solution

  • A little late, but Google added a fix for the issue.

    https://issuetracker.google.com/issues/35904733