Apacheではmod_rewriteを使用してhttps通信を強制することができる。
「httpd.conf」に以下の記述を追加してapacheを再起動すればOK。
RewriteEngine on RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R=301,L]
参考記事
Is it bad to redirect http to https?
I just installed an SSL Certificate on my server. It then set up a redirect for all traffic on my domain on Port 80 to redirect it to Port 443. In other words...