Yeah sometimes I do get that page isnt redirecting properly message too. I'm using two versions of htaccess.. The first works on one server the second on an other.. but in case you are on cloudflare then just force SSL at CF..
Version 1:
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.YOUR_DOMAIN_GOES_HERE.com/$1 [R,L]
Version 2:
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
(both force the user to www. version of the site)