www CNAME not properly resolving to my Pages domain - Error code 522

I have a pages project up at https://rexipie.pages.dev. A while back I used Cloudflare domains to have https://rexipie.com serve my Pages content. Now I want https://www.rexipie.com to do the same. I have added the CNAME record shown, but I get 522 errors when attempting to navigate to it. When I check a third party DNS lookup, I see no CNAME records listed: https://www.nslookup.io/domains/rexipie.com/dns-records/#cloudflare
No description
No description
9 Replies
jax
jax10mo ago
I tried making the CNAME record list rexipie.pages.dev as the authoritative name for www too, didn't work.
jax
jax10mo ago
Hmm, I just did now and now it says the page is empty?
No description
Soham
Soham10mo ago
In pages settings, you should add www.rexipie.com in the custom domain section Hmm Works for me
jax
jax10mo ago
oh oops, I was going to www.rexipie.pages.dev www.rexipie.com works, thanks!
Chaika
Chaika10mo ago
Yea two things, as Soham said, you need to add the custom domain within the Pages project As for
When I check a third party DNS lookup, I see no CNAME records listed: https://www.nslookup.io/domains/rexipie.com/dns-records/#cloudflare
It's how Proxied CNAMEs work, Cloudflare resolves them internally and only responds with A/AAAA Records with their Proxy IPs
Chaika
Chaika10mo ago
It has the A/AAAA records to Cloudflare as you'd expect yea
Chaika
Chaika10mo ago
Also Search engines will punish you for duplicate content/it's bad seo, if www and apex serve the same things. If you care about that at all, you might just want to redirect instead: https://developers.cloudflare.com/pages/how-to/www-redirect/
Redirecting www to domain apex · Cloudflare Pages docs
In this guide, you will learn how to redirect the www subdomain to your apex domain (example.com). This is a common question and can be achieved by …
jax
jax10mo ago
Oh interesting, thanks for the tip. Oh and local storage isn't shared with www, I'll prob just do the redirect.
Want results from more Discord servers?
Add your server
More Posts
SSL Error due to missing root CA for AWS domain with root CNAME to PagesHi all! I have a domain registered on AWS route 53, let's call it `example.com`. The content of thEndpoint working on preview but not via browser?Hi there! I'm having some problems with my worker instance, the endpoint seems to be working on the I get error: You have no linked accounts matching the provided username. (Code: 8000011)I own a static website made out of HTML + CSS + JS. I've used CloudFlare Pages for some time now andWhen syncing fork CF did not auto deploy the pageAfter syncing my fork via the Github website, CF still thinks the latest commit is whatever was befoChange POST request to GET request using workers for the same url.is there a way to change the request method from post to get for the same request object, using worktry https dl1 tanphongthan com versiontry https://dl1.tanphongthan.com/version.json vs https://dl2.tanphongthan.com/version.json response CORS and Zero Trust TunnelsI have a API gateway and use zero trust to tunnel the requests on my server. Now on my backends i sError 526 when changing sub-domain IP to new serverHello. I just moved my API's away from my main box to their own VPS with Hetzner. I changed their IAbout Building Applicationwhy i will stuck at building application when i am deploying the server with node.js and build commaGetting too many redirect despite removing the page ruleshttps://dbuilds.arg.ai/ getting too many redirects despite removing the page rule that was causing i