Redirect www to non-www for static SSL-enabled website on cloud bucket

Google has well-documented instruction on how to deploy a https-enabled static website on cloud bucket.

I followed this Instruction and get my website deployed on cloud bucket with a SSL certificate. After finished the instruction, there are two load balancer created: 

1. one I created for https protocol - this has the bucket as backend,

2. the other google automatically created for http-to-https redirect - this does not have backend.

The website is working fine. However, when I use www.mydomain.com and mydomain.com to visit my site, I can see the URLs in the browsers remain two different URLs.

So, I want to redirect www traffic to non-www traffic. I have done a bit search for about 2 days, but no magic. 

If anyone has the solution, I will be really appreciated.

1 REPLY 1

Hi @bobot ,

Can you add details to your question such as the screenshot when you access www.mydomain.com and mydomain.com? What are the URLs showing? I was thinking that it might be the webhost admin page of your domain.