我正在尝试的是:
RewriteEngine on RewriteCond %{HTTP_HOST} !="" RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{HTTPS} ^on(s)| RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
两个多曼人 http://example.com 和 https://example.com 作品。第一个应该重定向到安全版本。我做错什么了?我看了很多文章,但没能解决问题。谢谢您!
http://example.com
https://example.com