0

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

Patrick Mevzek
  • 10,581
  • 7
  • 35
  • 45
Brachamul
  • 101

2 Answers2

0

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.

Michael Hampton
  • 252,907
0

After further research, trial and error, I found out that two good solutions can be :

  • Setting up a host for my domain, which requires the redirection to the new domain to be done via .htaccess rather than via DNS.

  • Validating the domain with a DNS challenge : How to use Let's Encrypt DNS challenge validation?, thanks @Patrick Mevzek for pointing that out for me

Brachamul
  • 101