RewriteEngine On
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} !(^/sslon/.*$)
RewriteRule /.*$ http://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} ^/sslon/.*$
RewriteRule /.*$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
カテゴリー