My site's url is example.com or http://example.com. See the thing is my site already has quite a lot of links on the internet. some are example.com and others are www.example.com. What i wanna do is redirect all my www.example.com urls to example.com . For example- www.example.com/page1.html to example.com/page1.html
This is usually done through htaccess but google cloud doesnt support htaccess so... any ideas???
Assuming that you have a bucket “www.example.com” and what you want is to redirect the content that is not found on it, you could do it by coding a custom 404.html page. Your code in the 404 page would be in charge of doing the redirect to "example.com" domain.