WordPress: htaccessで常時SSL化(全ページHTTPS)にリダイレクトする方法
.htaccessファイルに最初の5行を足すとhttp://からhttps://へリダイレクトされます。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
参考サイト:
http://j-sem.net/wordpress_ssl_htaccess/