我发现了很多例子,但是所有这些都是针对特定域名的,我的服务器有很多主域名和子域名。
我希望所有主域名都重写为https://www,但子域名只能改为https://:
RewriteCond %{REQUEST_SCHEME} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
我现在使用此规则来获取https://
RewriteCond %{REQUEST_SCHEME} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} !^(.*)\.(.*)\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
答案 0 :(得分:1)
我发现这个问题不是答案,但对我来说很好:
wlan_intf_opcode_bss_type