Use the below code in your .htaccess to redirect the website from all HTTP requests to HTTPS + non-www HTTPS to HTTPS with www .Repace example.com with your domain name.
domain.com–>https://www.domain.com
www .domain.com –> https://www.domain.com
=====
# Redirect all “not correct” domain to www with https
# (is not important if comes with or without https):
RewriteCond %{HTTP_HOST} !^www.example.com$ [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301]
# Redirect all non-ssl to ssl.
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
======