I migrated a site from oldsite.example
to newsite.example
.
HTTPS was enforced all over, so most incoming links to oldsite are going to https://www.oldsite.example
.
My oldsite.example
domain used to point to a host which had a certificate for it. However, the domain now redirects to newsite.example
, and the host contains a certificate for that instead.
So people using direct links like https://www.oldsite.example/anything
receive a SSL_ERROR_BAD_CERT_DOMAIN
error.
My question is the following : how do I certify a domain that doesn't have any hosting attached to it ?
Further info :
My domain name provider is OVH, the redirection is setup there
My host is PythonAnywhere