Introduction
When the www version of a site stops working while the apex domain still loads, the problem is usually not the whole website. It is usually a hostname-specific issue involving DNS, redirects, proxy setup, or certificate coverage. The safest fix is to verify that www is intentionally configured instead of assuming it should work automatically.
Symptoms
example.comloads butwww.example.comfails or times out- The browser shows DNS, SSL, or redirect errors only on the
wwwhostname - Cloudflare, hosting, or DNS records were changed recently
- The site migrated to a new platform and only one hostname was updated
- SSL checks show the certificate covers the apex domain but not
www
Common Causes
- There is no
wwwDNS record or it points to the wrong target - The
wwwCNAME still references an old platform, server, or CDN endpoint - Redirect rules send
wwwto a hostname that is not configured correctly - The TLS certificate does not include the
wwwhostname - The CDN or hosting platform expects both hostnames to be added explicitly
Step-by-Step Fix
- Check whether
wwwhas a valid DNS record, usually a CNAME or an A record, and confirm it points to the current live platform. - Compare the
wwwtarget with the apex domain target so you can see whether only one hostname was updated during migration. - Verify that your CDN, reverse proxy, or hosting platform has
wwwadded as an active domain and not just the root domain. - Test HTTPS on
wwwspecifically and confirm the certificate SAN list includes that hostname. - Review redirect rules so
wwwresolves cleanly to the canonical hostname instead of looping or pointing visitors to a dead destination. - If the site uses Cloudflare or another proxy, confirm the
wwwrecord is proxied or DNS-only intentionally and not left in the wrong mode by accident. - Wait for DNS propagation only after confirming the new record is correct, because waiting does not fix a wrong target.
- Retest both
wwwand non-wwwfrom an uncached browser session and an external DNS checker. - Keep both hostnames documented in DNS, SSL renewal, and platform domain settings so future changes do not break one version silently.