Cloudflare pages with custom domain is not working for subdomains eg. www

First of all I’m using the pages for hosting static sites on the Cloudflare edge servers and I’m very happy with the performance and speed.

However, I noticed that when I’m using a custom domain with my page. I can’t add a CNAME record to redirect my subdomains (eg. WWW) to the Cloudflare hosted “*.pages.dev” site. The page is giving a connection time out Error code 522.

I used rules to forward the www requests to non www records. But I would like to know if there’s a limitation in the system or may be I’m missing something and there is a better solution.

Hey,

Did you add the www... domain to Custom Domains? Just like you did with the apex, you need to do it for the www.

2 Likes

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