httpのアクセスをhttpsに、かつwww無しをwww有りに統一
RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^sample.com RewriteRule ^(.*)$ https://www.sample.com/$1 [R=301,L]