Pointing cloudflare domain to new pages project results in host error (522)
I have two domains and one Cloudflare Pages project. Previously, the Pages project was using one domain (Domain A), but I want to switch it to another domain (Domain B).
I updated the DNS settings under Domain B, adding the following CNAME record:
After making this change, I noticed the update took effect because the domain now leads to an error instead of the previous project. However, visiting the domain now results in a "Connection timed out" (Error 522) message, indicating an issue at the host level.
Previously, the domain pointed to a different Pages project and worked correctly. Now, it does not resolve properly to my current Pages project.
What I’ve tried:
How can I resolve this issue and correctly link Domain B to my Cloudflare Pages project?
Thanks.
EDIT: resolved. see below.
I updated the DNS settings under Domain B, adding the following CNAME record:
After making this change, I noticed the update took effect because the domain now leads to an error instead of the previous project. However, visiting the domain now results in a "Connection timed out" (Error 522) message, indicating an issue at the host level.
Previously, the domain pointed to a different Pages project and worked correctly. Now, it does not resolve properly to my current Pages project.
What I’ve tried:
- Confirmed the CNAME record is set correctly under Domain B.
- Verified that the record is proxied through Cloudflare.
- Verified no other record points to anything related to the previous project it was using.
How can I resolve this issue and correctly link Domain B to my Cloudflare Pages project?
Thanks.
EDIT: resolved. see below.
