I'm trying to set up my cloud.google.com compute instance to only point to https but i'm really struggling trying to figure it out.
My use cases are:
- user connects to http://www.example.com -> should redirect to https://example.com
- user connects to http://example.com -> should redirect to https://example.com
- user connects to https://www.example.com -> should redirect to https://example.com
I currently have a certbot certificate installed for example.com but have no idea how to set up the cloud dns to do all the rerouting.
Thanks for the help.
Nic