Publishing guide · 03 / 06

Connect your own domain to Cloudflare Pages

Point a domain you already own to a working Pages site. Follow the right steps for a subdomain or a bare domain and verify HTTPS.

Watch on YouTube 3:11 · Captions available

Follow the steps

  1. Open your working pages.dev site. For a first run, choose an unused subdomain such as site.example.com.
  2. In the same Pages project, open Custom domains and add the hostname before editing DNS.
  3. If your subdomain’s DNS is managed elsewhere, use the CNAME and exact target supplied by Pages. An apex such as example.com requires a Cloudflare-managed zone.
  4. If you already have a website or business email on the domain, check what your existing records do before changing nameservers or replacing records.
  5. When Pages reports the hostname is active, open the new address over HTTPS and test the navigation and contact link.
The Custom domains tab in the fictional Cloudflare Pages project.
The Custom domains tab in the fictional Cloudflare Pages project.

Check the result

Domain registration and renewals are separate from hosting. Confirm that the old website and existing email still work wherever you intend to keep them.

Read the video transcript

Welcome to this explainer. We’ll walk through how to connect a custom domain to your Cloudflare Pages site and what to check first if you already use the domain. Let's get right into it. So the very 1st thing we need to get straight is the relationship here.

Your domain name is simply the address people type in, while Cloudflare Pages? Well, that's the engine that actually serves your website files back to them. Keeping this distinction in mind is going to save you a lot of troubleshooting headaches later on. Okay, step one, connect your custom domain. Now, before we even think about touching any DNS settings, you've got to do a

quick sanity check. It is absolutely critical to open your existing pages.dev address in a browser first. You just need to confirm that your base deployment is working perfectly before adding any custom domains into the mix. Makes sense, right?

Add a spare subdomain. A subdomain, something like site.example.com is basically your safe testing ground. By starting with an unused prefix, like site, you get to test out your new connection securely. Leave the records for your existing website and email alone while you test the

new hostname. So inside your Cloudflare Pages project, you'll want to open up the custom domains tab. Click set up a custom domain and just pop in that unused subdomain you just chose. Next up, step three, create a CNAME record.

If you happen to manage your DNS outside of Cloudflare, you're going to need to create a CNAME record at your specific provider. For this, the name is going to be your subdomain prefix. like site, and the target absolutely must point to the exact pages.dev address that Cloudflare provided to you.

All right, step four, bare domains and email. Now, hold on, we really need to pause right here. A bare domain, such as example dot com, requires a Cloudflare-managed DNS zone. If Cloudflare already manages it, use the existing zone. And listen, if your domain already carries a live website or active business

email, changing those nameservers is going to affect absolutely everything. You must verify your existing configurations before making a switch like this. Don't skip that step. Finally step five. Test and verify. After Cloudflare Pages tells you that the domain is officially active and

that the SSL certificate is issued, go ahead and open up your new HTTPS address on your device. Open the homepage, follow at least two internal links, and check that your contact details and links are correct. As a final best practice, just remember that while your website files are now

being beautifully served via Cloudflare Pages, your actual domain registration, your yearly renewals, and any business email hosting, remain completely separate services. Those are things you'll continue to manage and pay for totally independently. Now, if you hit any roadblocks while configuring these settings, No worries.

Email Seizon at the address shown for help. As we wrap up this explainer, I want to leave you with this thought. A single DNS record literally controls the flow of your entire digital presence. So have you fully audited your active email and traffic records before making your updates today?

Reference links