If you installed your website at http:// previously, and would like to change it to https:// automatically , kindly insert the following code into your .htaccess file :
# Force HTTPS:
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]