Do you want to know how to do SSL redirect to www only. So here is the code

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

RewriteRule ^([^/]+)/([^/]+)/([^/]+)$ page.php [L]

http://example.com Should redirect to https://www.example.com

http://www.example.com Should redirect to https://www.example.com

https://example.com Should redirect to https://www.example.com

https://www.example.com Should redirect to https://www.example.com

You can also use http://www.redirect-checker.org/ to check the redirection.