SSL導入で、httpをhttpsにリダイレクトする
URLを「http」から「https」にリダイレクトします。
RewriteEngine on
RewriteCond %{ HTTPS} off
RewriteRule ^(.*)$ https://%{ HTTP_HOST}%{REQUEST_URI} [R=301,L]
Just another WordPress site
URLを「http」から「https」にリダイレクトします。
RewriteEngine on
RewriteCond %{ HTTPS} off
RewriteRule ^(.*)$ https://%{ HTTP_HOST}%{REQUEST_URI} [R=301,L]