Unable to map naked domain (non www) to Google Cloud Storage bucket

Good day,

I am trying to host a static site on G Cloud Storage. I followed the documentation here https://cloud google com/storage/docs/hosting-static-website and all was successful.
I purchased a domain from namecheap volunux(dot)com and I named my bucket during creation as www. volunux. com after verifying the ownership in Search Console. I wasn’t satisfied with the “Not secure” thingy, so I wanted HTTPS, I should have used Load balancer but I was looking for something cheap at the moment.
So I opted for Cloudflare to get me a free SSL and all was fine. I set the nameservers CF gave me to my NCheap dashboard but here is the problem.
My site works at

but never works when it is:

For close to 24 hours since yesterday, I have been searching for solution to this problem all over the internet.

  1. Some suggested and said, one have to create two bucket in GCS to serve both www and non-www.
  2. Some, one have to create another bucket and in the web configuration, set the MainPageSuffix as https(colon)// www(dot)volunux(dot)com so that redirect will be perform.
  3. Some, one have to create a cname record to c(dot)storage(dot)googleapis(dot)com which I did but didn’t work.
  4. Some, one have to create an A record to set the IP to my hosting provider, I assume GCP but it didn’t work either.
  5. Some, I have to create a page rule and redirect all request from volunux. com with or without protocol to https(colon)//www(dot)volunux(dot)com

I think #1 would have worked but I have to maintained two separate buckets for one thing and #2, I don’t know if it is standard practice but from #3 to #5.
All efforts prove abortive.
I have performed a URL Rewrites, 301 permanent redirects from volunux(dot)com/* to https (colon)//www(dot)volunux(dot)com/$1 but all efforts prove abortive based on the solutions I have found on the internet,
I am confused at this stage because I don’t know what to do. I am thinking of moving back to Github Pages using Jekyll or even to AWS S3 but I don’t want to do that just yet.

Somebody please help. Attached is a link to the to the screenshot of configurations.


This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.