原本有幾有好幾個"無條件" 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
}
這應該怎麼寫? 謝謝!