我们能否HTTPS仅供主页即对于重定向规则到https
example.com 或http://example.com或 www.example.com 或http://www.example.com
剩下的所有页面应该以http开头。
我已经试过这样的,但它没有工作
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} "^/$"
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteRule ^(.*) http://%{HTTP_HOST}%{REQUEST_URI}