原本有几有好几个"无条件" rewrite
RewriteEngine On
RewriteRule Rule1
RewriteRule Rule2
RewriteRule Rule3
我现在想加上 "强制ssl"
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
也就是
if (not ssl)
{
RewriteRule => https
}
else
{
Rule1
Rule2
Rule3
}
这应该怎么写? 谢谢!