L
L
lexstile2020-02-11 22:30:44
Digital certificates
lexstile, 2020-02-11 22:30:44

Redirect from https to http does not work, why?

The ssl certificate has ended, I don’t plan to renew it, I disabled it in the panel, the site opens via a direct url using the http protocol, but the redirect does not work if I try to open it via the https protocol.
Added to htaccess:

RewriteEngine On
RewriteCond %{SERVER_PORT} ^443$ [OR]
RewriteCond %{HTTPS} =on
RewriteRule ^(.*)$ http://mysite.com/$1 [R=301,L]

I see such a picture:
5e4300e039f8b525133905.png
Site on reg ru.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-02-11
@lexstile

End of ssl certificate

The thing is, it's over. The browser sees that the certificate has expired and does not allow you to connect to the site, as a result of which the redirect does not work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question