我们可以只为主页制作 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}