Attach Cloudflare pages to a subdomain

Initial situation:
3 domains with an external hoster

I have created a CF page to which I wanted to move today. I changed the nameservers (as described) at the old provider.
The access to the domain ( works in principle, but the access to does not.

I have the following entries at the DNS:
CNAME | www |
MX | | 50 [old mailserver at old hoster]
MX | | 10 [old mailserver2 at old hoster]
TXT | | “v=spf1 mx a ~all”
The TXT entry is still from the old provider.
Proxy is enabled at the CNAMEs.

Can someone please help me to identify the error, why does work but not (should also show the same page)?
I have already tried to search, but unfortunately I did not get any further.
Thanks in advance for any help!
Best regards

What specific error do you get? Is it a 522?

Each domain/subdomain (hostname) must be added to the Pages Project as another custom domain, this includes any subdomains like www (You have to have both and as two separate custom domains in your Pages Project), if you haven’t already added it: Custom domains · Cloudflare Pages docs

That being said, it is bad for SEO/Search engines if you have duplicate content, as such it is usually recommended you just deploy a redirect instead: Redirecting www to domain apex · Cloudflare Pages docs

1 Like

Thanks a lot, with the tip (bulk redirects) I was able to solve it.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.