[root@linux ~]# vi /etc/httpd/conf/httpd.conf # 適当な場所に以下を追加 <IfModule mod_rewrite.c> RewriteEngine On RewriteLog "logs/rewrite_log" RewriteLogLevel 0 RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/hogehoge/(.*)?$ https://%{HTTP_HOST}/hogehoge/$1 [L,R] RewriteRule ^/cgi-bin/hogehoge.cgi(.*)?$ https://%{HTTP_HOST}/cgi-bin/hogehoge.cgi [L,R] </IfModule> RewriteEngine On rewriteを有効にする。 RewriteLog "lo