port80 httpsに変更
RewriteEngine on RewriteCond %{SERVER_NAME} =domain.com RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI}[END,NE,R=permanent]
cerbot をwwwありなしどちらも有効
cerbot –apache w- www.domain.com w- domain.com
port443 wwwありをなしにリダイレクト
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule ^(.*)$ https://domain.com%{REQUEST_URI} [R=301,L]
あと ServerAlias www.domain.com
以上
No responses yet