How to certify a domain that's used only for redirections and has no hosting?

Brachamul asked:

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

My answer:

I have no idea what your question is supposed to mean. There is no such thing as “certify a domain that doesn’t have a host attached to it”.

But you actually solve the problem by installing a TLS certificate for the old domain.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.