I am having the same issue however the solution above redirects to the public_html folder like so:
www.site.com/public_html
The .htaccess file is located outside the web directory.
EDIT: I have fixed this by using the following code. I assume it works with SSL too.
HTML Code:
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]