RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://yoursite.com/$1 [R=301,L]
under the second line replacing yoursite.com with your domain and then it should work
the ssl works, all you have to do is to switch the http to https in the config.php
not redirect is needed, that was a major disturbance for me and led me to wrong paths and a lot of headache.
but you have to make sure you have this in your site.conf file site-ssl.conf file (apache2 ubuntu 14)
DirectoryIndex index.php index.html index.shtml index.htm default.html Default.htm default.html Default.html default.shtml Default.shtml page1.html index.pl index.cgi index.php3 index.phtml home.htm home.html home.shtml index.wml
Options FollowSymLinks
AllowOverride All
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all