Link to home
Start Free TrialLog in
Avatar of Neil_Bradley
Neil_BradleyFlag for New Zealand

asked on

htaccess

Hi all,
my aim is to use htaccess to move all requests to https to http.
My question is this. Can this be done if the domain name does not have a secure certificate and if so then how.

This is what I have come up with but no luck
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Open in new window

Cheers,
N
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

The SSL/TLS security certificate is part of what provides the HTTPS encryption.  You can not use HTTPS without one.
Avatar of Neil_Bradley

ASKER

Yes I know that but my question asks if it is possible to re direct any https requests to http?
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Dave, I suspected as much but good to have, confirmation.
Cheers,
Neil
You're welcome.  I vaguely remembered trying that before so I re-did the experiment on two of my sites, one with SSL and one without, to make sure.