user.phpやregister.phpなどユーザ登録、ログインなどの画面だけhttpsへリダイレクトさせて、他のページへSSLアクセスされた時は逆にhttpへリダイレクトさせる.htaccessです。 RewriteEngine On RewriteCond %{REQUEST_URI} ^/(user|register|edituser|lostpass)\.php [OR] RewriteCond %{REQUEST_URI} ^/modules/user/ RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L] RewriteCond %{REQUEST_URI} !(^/(user|register|edituser|lostpass)\.php) RewriteCond %{REQUEST