V
V
Vasily2021-11-22 14:50:02
htaccess
Vasily, 2021-11-22 14:50:02

Redirect after verifying certificate date?

Is it possible to check the validity / date of the installed certificate in .htaccess in
order to use the result of the check in subsequent redirect rules?

For example, for a site with an expired SSL certificate to be available via http, with all media.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2021-11-22
@xnscripter

First, a TLS handshake occurs, and only then does HTTP begin. In other words, no, you can't. If you followed the https link, then either everything will go fine and the request will fly to the web server, or the browser will issue a warning.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question