Force HTTPS/SSL

In order to force users to only use https:// you must change the .htaccess file like below:

RewriteEngine On

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]

If you get a mixed content warning and the login page appears without the background and any styling then you need to change your base url.
In your /application/config/config.php you might need to change the $config['base_url']= ''; to $config['base_url']= 'https://yourDomainName.com';