How to force redirect any typed web address to https www

Considering the fact that an user can type into the browser address my domain address as any one of the following:

How can I always redirect instantly to ?
This becomes somewhat important as https:// and https://www show different font sizes of a default install of Elgg. (why this is so?)
Also sometimes such redirection gives login error : login from different domain not allowed (what to do to avoid this?)

I am trying the following but not getting desired results uniformly

RewriteEngine On
RewriteCond %{HTTP_HOST} ^ [NC]
RewriteRule ^(.*)$$1 [L,R=301]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]