I am confused over getting my [name].pages.dev to redirect to [name].com.
Hi. As per the title, I have bought a custom domain of [name].com. I got the github integration to work smoothly. Now the problem is getting the site to actually visit the custom domain instead of [name].pages.dev. I followed the documentation here: https://developers.cloudflare.com/pages/how-to/www-redirect/.
I added the following DNS records:
And the following redirect rule:
However, it does not seem to be working as you can see in the last image. Is this because it's still updating? Mind you, this isn't a custom domain I recently bought. I have already bought this a couple of weeks ago, and it was working fine when I went to [name].pages.dev.
Right now all I want is to have someone tell me "follow these steps and it will work guaranteed".
6 Replies
did you set up custom domains like so?
its under pages settings
Oh my god
Wait hold on hold on hold on
So I not only have to buy the domain under the "Manage Domains" tab, but also link it together with the app?
Okay, I wasn't aware of this
If you want a custom domain then follow https://developers.cloudflare.com/pages/platform/custom-domains/
Custom domains · Cloudflare Pages docs
When deploying your Pages project, you may wish to point custom domains (or subdomains) to your site.
Thank you all so much @laralove @Cyb3r-Jok3 ! 🙂
ofc
iirc the custom domains tab under pages does the cname stuff for you