Unable to get www. redirect to work

Pages: anre-homepage.pages.dev Deployment ID: I'm not sure :( Account ID: 9400aab31a94e83d5044bbc3fe4139df Error: Hi, I'm trying to set up the www. direct for my site (anre.ai), but am having issues even though I setup a CNAME which should be directing to it. The site without www. (so https://anre.ai) does work however. I tried turning off the proxy but it didn't work so I turned it back on.
No description
No description
2 Replies
Erisa
Erisa2mo ago
cnames arent redirects, you should follow https://developers.cloudflare.com/pages/how-to/www-redirect/
Cloudflare Docs
Redirecting www to domain apex · Cloudflare Pages docs
Learn how to redirect a www subdomain to your apex domain (example.com).
Erisa
Erisa2mo ago
if you want them to serve the same content rather than redirect, add the subdomain as a Custom Domain in the Pages project settings instead of just doing a cname on its own

Did you find this page helpful?