Website works without www but not with www
Symptoms
https://example.comopens, buthttps://www.example.comshows an error or another page.- Or the opposite:
wwwworks and the root domain does not. - The browser says the name cannot be found, or it shows a certificate warning for
www.
Common causes
- There is no DNS record for
www, or thewwwrecord points to the wrong place. - An old A record for
wwwis still there next to the new CNAME. - The free SSL certificate covers the root domain but not
www. - The domain in the hosting account does not include
www.
Safe initial checks
- Run
dig CNAME www.example.com +short. The answer should showweb.apncloud.net.. - Run
dig A example.com +short. The answer should show an IP address. - Open both names in a private window and note the exact error.
Do not delete MX or TXT records while you check.
Step-by-step solutions
- No
wwwrecord. Add a CNAME record namedwwwwith the targetweb.apncloud.net. See Point your domain to hosting with web.apncloud.net. - Old record next to the CNAME. Delete the old A, AAAA or CNAME record for
www, so only one record is left. - Certificate warning on
www. Request the free SSL certificate again in the hosting panel and make sure it covers the domain andwww. See SSL certificate not issued with Cloudflare. - Root domain does not work. Check the root record. Use CNAME flattening at Cloudflare, ALIAS or ANAME, or an A record, as shown in the guide linked in step 1.
- Choose one main name. Pick
wwwor the root domain as your main address and redirect the other one to it. Do this in one place only.
How to confirm the issue is fixed
- Both
https://example.comandhttps://www.example.comopen the website, or one of them redirects to the other. - The dig commands above show the expected answers.
When to contact support
Contact support if the records look correct for several hours and one name still fails. Contact [SUPPORT_CONTACT].
Information to include in a support ticket
- The domain name and which of the two names fails.
- The output of the two dig commands.
- A screenshot of your DNS records.
- The exact error text from the browser.
Related articles
- Point your domain to hosting with web.apncloud.net
- CNAME records
- Domain connected but not visible
- DNS not resolving
Last reviewed
2026-10-29
