You may encounter an SSL error on the www version of your site even though SSL works on the non-www version of your site. This error could be due to a couple of reasons:
- You might have generated an SSL certificate while DNS still needed to fully resolve. Removing and regenerating the SSL certificate should fix this.
- The CNAME record may be missing. Verify the CNAME record is present, and if not, set up a CNAME record.
How to check if you have used nameservers or an A record to point your domain
To verify the CNAME record is present, first check whether you have used nameservers or an A record to point the domain. You can use a tool like DNSChecker to check:
- Enter your domain in the search field
- Select NS from the drop down list
- If you have used nameservers to point the domain, you’ll see four nameservers in the results. They should match the nameservers in the 10Web dashboard's 'Manage DNS' section under Hosting Services > Domains.
If you don’t see nameservers in the results, you may have used an A record to point the domain. Try another search in DNSChecker to confirm you’re using an A record:
- Enter your domain in the search field.
- Select A from the drop down list.
- If you have used an A record to point the domain, you’ll see an IP address in the results. The IP address should match the IPv4 address found in the 10Web dashboard’s Datacenter & IP section under Hosting Services > Credentials.
Next, verify the CNAME record. The exact steps vary depending on whether you have used nameservers or an A record to point the domain.
How to verify a CNAME record if you have used an A record to point the domain
If you have used an A record to point your domain, please verify that the CNAME record is present. You can use DNSChecker to verify:
- Enter your domain in the search field
- Select CNAME from the drop down list
- Check if you see the CNAME record.
If you are missing a CNAME record, you’ll need to add one that redirects the www-version to the non-www version of your site URL. If you have used an A record to point your domain, you can usually add the CNAME record through your domain registrar instead of the 10Web dashboard.
How to verify a CNAME record if you have used nameservers to point a domain
If you have used nameservers to point your domain, you can view, add, or edit CNAME records in your 10Web dashboard under Hosting Services > Domains > Manage DNS. To resolve the SSL error on the www version of your site, check if there is a CNAME record present that redirects the www-version to the non-www version of your site URL. If not, set up a new CNAME record.