Answer the question
In order to leave comments, you need to log in
How to make a redirect in apache from one domain to another, when accessing via https, if the first domain does not have a valid certificate?
Domain A does not have a certificate, domain B does. It is necessary, when accessing domain A via https , to redirect to domain B also via https . The problem is that when accessing domain A , even at the stage of establishing an encrypted connection, the browser swears at the certificate (because it is not suitable for domain A ), and it doesn’t get to the redirect ..
Answer the question
In order to leave comments, you need to log in
No way. An https connection (including certificate verification) is established BEFORE sending any http requests (except for the case with SNI, where the Host is sent in advance). Redirect - the response of the web server is already.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question