in this tuto, I'll show you how to redirect all of your pages to be forced to use SSL then add this to your .htaccess
file.
# Redirect to HTTPS
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
This should be added after:
RewriteEngine on
if you want also to redirect all users to access the site with the 'www.' prefix, just add this to your .htaccess
file.
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ http%{ENV:protossl}://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]