3

I want to redirect https requests to http on an apache server.

I have updated my .htaccess file as described in this previous question:

Redirect HTTPS to HTTP

However, this doesn't work and gives (in Chrome):

Error 102 (net::ERR_CONNECTION_REFUSED): The server refused the connection.

I am guessing that the server isn't enabled to handle 443 requests. So my question is - is there a graceful way to handle this?

williamsdb
  • 483
  • 1
  • 7
  • 17

1 Answers1

1

If your server is not listening on port 443 there is no way you can have it do anything on requests send to that port. If you want your server to redirect from https to http you will first have to enable https on that server.

Krist van Besien
  • 1,832
  • 13
  • 16
  • As I suspected. So I have enabled SSL on apache but now when you go to the https address before it redirects to http you get the untrusted certificate message as it is now using a self signed certificate. Is there a way to redirect without this. I am guessing not. – williamsdb Apr 11 '13 at 09:02
  • 1
    go to `startssl.com` and issue one year free certificate there. – Marcel Apr 11 '13 at 16:12
  • So just to close this off I got a free certificate from startssl and then installed following these instructions: http://jasoncodes.com/posts/startssl-free-ssl now redirects fine. Thanks – williamsdb Apr 12 '13 at 10:12