2009-04-21から1日間の記事一覧

htaccess httpsでアクセスさせる メモ

Apacheのmod_rewriteを利用して自動的にhttpsでアクセスさせる方法。ディレクトリに.htaccessを作成。 RewriteEngine on RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]httpとhttpsが同じディレクトリの時に便利。 …