sslの設定などの説明は省略します。 /etc/httpd/conf/conf.d/rewrite.confを設定 今回は/etc/httpd/conf/conf.d以下にリダイレクト処理だけを書く設定ファイルを用意しました。/etc/httpd/conf/httpd.confに直接書いても構いません (ただしモジュールのロードの後に書く必要があります。) mod_rewriteの設定 <ifModule mod_rewrite.c> RewriteEngine On LogLevel alert rewrite:trace3 RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L] </ifModule> RewriteRuleは書き換えのルール、 RewriteCondはRe