RewriteEngine On

# Eğer host www.xxxx.com değilse VEYA HTTPS değilse -> https://www.xxxx.com olarak yönlendir
RewriteCond %{HTTP_HOST} !^www\.xxxx\.com$ [NC,OR]
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://www.xxxx.com%{REQUEST_URI} [L,R=301]