web:redirect-https
強制的にhttpsにリダイレクトする
.htaccessに下記のコードを追記します。
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] </IfModule>
WordPressによる記述などがあれば、その上に記述します。
スポンサーリンク
web/redirect-https.txt · 最終更新: 2023/12/29 20:01 by Shohei Okuda