urlのプロトコルをhttpからhttpsにリダイレクトする方法。
.htaccessに書き込んで反映させる。
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
</IfModule>
urlのプロトコルをhttpからhttpsにリダイレクトする方法。
.htaccessに書き込んで反映させる。
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
</IfModule>