I am currently running a website on a shared server (Hostgator). The site does not have an SSL certificate and doesn't really need it since it is just informational.
However, I've noted that a few people have erroneously tried to connect using SSL (https://www.mysite.com). I'm guessing that they replaced sections of the url in their browser window.
Currently, instead of redirecting to the non-SSL version, I get an SSL Connection Error (Error 107) page. I'm assuming because the connection over the port was refused.
I thought I could just redirect using mod_rewrite so I have tried the following in my .htaccess file but it doesn't seem to have an affect:
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Does this rule not do what I think? Or is this not even possible because the error occurs before mod_rewrite is executed (maybe because the port for SSL is blocked)?