redirect from https: to http:

Permalink
I see a lot of discussions about forcing or redirecting an http: to an https:. I need to do the opposite, so if someone types inhttp://www..., it will redirect them tohttp://www... The client is not ready/doesn't want a secure site in the short term. But if someone uses the https: (inadvertently, or for whatever reason), they get that scary message that the site is not configured properly and that it might be trying to steal their private information.

I presume one does this sort of redirect in the .htaccess file, but I don't know the proper way to set that up beyond the pretty URLs. Any help would be much appreciated. Apologies if this is discussed or part of the documentation already. I couldn't find the "how-to."

Thanks.

 
mesuva replied on at Permalink Reply
mesuva
I don't believe that is possible without a valid SSL certificate in place, as the https handshake happens _before_ the server can send headers to trigger any redirects.

You can only put it in place if the site works correctly under https.