522 error for www name of my custom domain

My custom domain is hosted in cloudflare and it's working fine. But when I added DNS record for www subdomain it doesn't work it says 522 error server timeout how can I fix it ?
No description
2 Replies
Chaika
Chaika9mo ago
Are you using CF Pages? If you, you need to add each hostname (including www) under Pages Custom Domains tab, just like you did for your root domain name. Alternatively, add a redirect: https://developers.cloudflare.com/pages/how-to/www-redirect/
Cloudflare Docs
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 …
Tanjirokamado
TanjirokamadoOP9mo ago
Thanks a lot
Want results from more Discord servers?
Add your server