HTTPS conditional rewrite using apache
From AdminWiki
- Only rewrite if no SSL is used:
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*) https://%{HTTP_HOST}/rt
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*) https://%{HTTP_HOST}/rt