Make the www or apex name work over HTTPS on Vercel
Why it matters
The other spelling of the domain resolves in DNS but fails over HTTPS or presents a certificate that does not cover it, so visitors who type it get an error or a browser warning. Either serve it with a valid certificate and redirect it to the main host, or remove its DNS record.
The fix
- Open the project, Settings, Domains, add the other name and set it to redirect to example.com.
- Set its DNS record as Vercel lists it; the certificate is issued automatically.
The examples use example.com. Replace it with your own domain.
Related
- Reported by the HTTP to HTTPS redirect check
- Serve the site over HTTPS
- Stop redirecting HTTPS to HTTP
- Redirect HTTPS straight to the other host's HTTPS page
- Redirect HTTP to HTTPS
- Redirect HTTP to HTTPS instead of answering an error
- Check that browsers are redirected from HTTP to HTTPS
- Fix the broken HTTPS redirect chain
- Shorten the redirect chain
- Fix the HTTP redirect chain
- Redirect HTTP straight to HTTPS
- Answer HTTP with a redirect to HTTPS
- Redirect www and apex to one host
Scan your domain to see whether this applies to you.