SSL化に伴うhttp://→https://自動転送

.htaccessを使って、http://→https:// に自動転送する際の記述です。

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
</IfModule>
Comments are closed.