I recently hosted my static website on Cloudflare Pages and everything is going well, except for one issue. I’m having trouble redirecting the default web address (i.e., ***…pages.dev) to my custom domain (e.g., myexampledomain. com). I want visitors who enter the default web address to be automatically redirected to my custom domain, to avoid any duplicate content issues on Google.
How can I set up this redirect on Cloudflare Pages? Thanks in advance for your help!
Thank you for your suggestions and for taking the time to help me with this issue. Unfortunately, I’m trying so hard of all the methods you suggested, but the issue still persists. As a beginner or non technical guy, it feels quite challenging to navigate technical aspects of this things.