特定のURLを強制的にhttpsにする

mod_rewriteが使えるなら RewriteEngine on RewriteBase / RewriteCond %{REQUEST_URI} ^/anypath [OR] RewriteCond %{REQUEST_URI} ^/otherpath RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

7月 14, 2009 · nojimage