Redirect HTTPS to HTTP on Centos

Asked

Viewed 380 times

0

I have a domain that no longer has his ssl certificate, 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 that domain is not safe 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 throw him into the HTTP, without having to appear that screen in the browser saying that it is unsafe?

1 answer

0


There is yes.

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

vim . htaccess:

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.