Redirect https -> http

markwittens

New member
Joined
Apr 2, 2012
Messages
1
I have the following redirect from https to http (https is not used on the server):

RewriteEngine on
RewriteCond %{HTTPS} on
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

This doesn't work, it seems to have something to do with a certificate being present on the server but I'm not sure how to locate/remove/disable this certificate (I never added a certificate to this server myself, seems to be there by default?) Hope someone can help me out with this!
 
There is no such thing as https to anything redirect. It is 100% impossible without a certificate error. Only way it will work is if you have a valid certificate on the https domain you are accessing first.
 
Last edited:
Back
Top