http://www.example.com/hello
を
https://www.example.com/hello
にリダイレクト/etc/httpd/conf/httpd.conf
LoadModule rewrite_module modules/mod_rewrite.so
<VirtualHost XXX.XXX.XXX.XXX:80>
ServerName www.example.com
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
</IfModule>
</VirtualHost>