Make the www or apex name work over HTTPS on Netlify

headers.redirect.counterpart_unreachable · effort: about an hour

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

  1. Set the canonical name as the primary domain; Netlify redirects its www/apex counterpart automatically. Remove the other name if it is listed as a separate alias.
  2. Point the other name's DNS at Netlify as Domain management lists it. Netlify adds it to the certificate once its DNS is configured; renew the certificate under HTTPS if it does not.

Read the documentation (opens in a new tab)

Scan your domain to see whether this applies to you.