If SSL works for your main domain but not for a subdomain, the subdomain may not be properly included in the SSL certificate or its DNS and hosting configuration may be incorrect.
Common causes include:
- The subdomain is not included in the SSL certificate.
- The subdomain's DNS record is missing or points to the wrong server.
- The subdomain has not been properly added to the hosting account.
- The SSL certificate has not been issued or installed for the subdomain.
- Cloudflare or another CDN may have an incorrect SSL configuration.
- The subdomain is pointing to a different server that does not have a valid SSL certificate.
How to Fix It
- Make sure the subdomain's DNS record points to the correct server.
- Confirm that the subdomain is added correctly in your hosting control panel.
- Check that a valid SSL certificate covers the subdomain.
- If using Cloudflare, verify the DNS and SSL/TLS settings.
- Reissue or reinstall the SSL certificate if necessary.
- Clear your browser cache and test the subdomain again.
If the SSL certificate is correctly configured but the subdomain still shows an SSL error, contact your hosting support team so they can check the certificate, DNS, and server configuration.