# Why an HTTPS Redirect Needs a Certificate on the Old Hostname

https://ferkesh.net/zh/knowledgebase/article/tls-for-redirect-source-hostnames

![Diagram linking List redirect sources, Check old certificate, Read redirect response and Verify destination.](https://ferkesh.net/kb-media/ferkesh-guide-diagrams-batch-05.svg#tls-for-redirect-source-hostnames)

A browser visiting https://old.example.com needs to establish TLS with old.example.com before it can read a redirect response. A valid certificate for new.example.com cannot repair an invalid certificate on the source hostname. The redirect is only seen after the encrypted connection succeeds.

## Verify the complete path

1. List old hostnames that can still be used over HTTPS, including both the apex and www if applicable. Inspect the source certificate for each name using a normal browser connection.
2. Inspect the HTTP status and Location only after TLS succeeds. For a read-only check, use curl -I https://old.example.com/ and then compare a representative path. If the platform handles HEAD differently from GET, verify the normal browser navigation too.
3. Visit the endpoint returned by the redirect. Confirm its certificate, expected path and canonical page. Keep source DNS, hosting or proxy mapping, and certificate renewal in place for the planned redirect period.

Do not bypass certificate validation to mark the check as passed. If a legacy HTTPS request fails before a redirect, fix the certificate or virtual host at the source first.

Check [how HSTS changes repeat visits](https://ferkesh.net/knowledgebase/article/website-hsts-effects) if returning browsers upgrade the old hostname to HTTPS before the redirect is reached.

## Related guides

- [How to Diagnose an HTTPS Certificate Warning](https://ferkesh.net/knowledgebase/article/https-certificate-warning)
- [How to Find and Fix a Website Redirect Loop](https://ferkesh.net/knowledgebase/article/diagnose-redirect-loop)
- [How to Choose and Verify Website Canonical URLs](https://ferkesh.net/knowledgebase/article/canonical-urls-checklist)
- [SSL and Website Security category](https://ferkesh.net/knowledgebase/category/ssl-and-website-security)

## Official references

- [RFC 9525 on service identity in TLS](https://www.rfc-editor.org/rfc/rfc9525)
- [MDN HTTP redirection guidance](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Redirections)

Ferkesh Hosting. Last reviewed November 26, 2026.
