Redirect HTTPS to HTTP on Centos

0

I have a domain which I no longer have the ssl certificate of it, the domain is pointing to a Centos 6 server. Every time someone tries to access it using HTTPS it will show in the browser that domain it is not secure because it does not have a valid active certificate.

My question is: Is it possible for me to redirect the user when trying to access through HTTPS to play it for HTTP , without

    
asked by anonymous 07.07.2017 / 23:24

1 answer

0

There is.

Go to the folder where your domino (site) is, for example: /var/www/html/meusite.com.br/ :

vim .htaccess:

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}
    
10.07.2017 / 00:39