SSL 通信へのリダイレクト
2006-02-06-2: [Security]
http://memo.xight.org/2006-01-24-3
http を https にリダイレクトする場合
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/path/to/(.*)?$ https://%{HTTP_HOST}/path/to/$1 [L,R]
2006-02-06-2: [Security]
http://memo.xight.org/2006-01-24-3
http を https にリダイレクトする場合
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/path/to/(.*)?$ https://%{HTTP_HOST}/path/to/$1 [L,R]