特定ページのみをSSL対応にする場合 本来であればリンクを細かく調整すべきなんだろうけど そうも言っていられない状況もある。 そこで.htaccessのmod_rewriteだけでできないのかな?と探してみたところ、 幾つか発見したのでメモ。 まずはSSLにしたいページのディレクトリに.htaccess作成 以下の例の場合、contact.php、contact_2.php、、contact_3.phpだけをSSL対象にできる。 RewriteEngine on RewriteCond %{REQUEST_URI} .*/contact.php$ [OR] RewriteCond %{REQUEST_URI} .*/contact_2.php$ [OR] RewriteCond %{REQUEST_URI} .*/contact_3.php$ RewriteCond %{HTTPS} of