How do I point a domain to a Cloudflare Pages website?

THE DIRECT ANSWER

Add the hostname through Cloudflare Workers & Pages → your Pages project → Custom domains → Set up a domain. Cloudflare requires an apex domain to be a zone in the Pages project’s account. An externally hosted subdomain can instead use a CNAME to the project’s pages.dev hostname, after the custom domain has been associated in Pages.

Explore these extensions

.dev domain questions and answers

Associate the hostname before pointing its record

Cloudflare warns that adding only the CNAME without the Pages association can produce a 522 error. For a subdomain using NameSilo DNS, its DNS operation supports CNAME and takes the hostname label without the domain suffix. If moving the whole zone, inventory existing website, mail and verification records first.

Your Next Steps

  1. 01

    Add the custom domain in the intended Pages project.

  2. 02

    Choose the documented apex or external-subdomain method.

  3. 03

    Publish the required delegation or CNAME.

  4. 04

    Verify Pages activation and existing services.

Associate the hostname before pointing its record

Cloudflare warns that adding only the CNAME without the Pages association can produce a 522 error. For a subdomain using NameSilo DNS, its DNS operation supports CNAME and takes the hostname label without the domain suffix. If moving the whole zone, inventory existing website, mail and verification records first.

What to check before you act
CheckWhy it matters
Verified detailCloudflare documents setup path, same-account apex zone, external CNAME and missing-association 522.
Your next stepVerify Pages activation and existing services.

Sources & Useful Links

Published 2026-11-17. Last updated 2026-11-19.

Ready for your next idea?

See if the domain you have in mind is available.

Find Your Domain