重定向到https://www我有以下htaccess代碼:<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond !{HTTPS} off
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>我想把我的網(wǎng)站重定向到https://www.使用HTTPS,并強(qiáng)制執(zhí)行www.子域,但當(dāng)我訪問http://www.(沒有https),它不會(huì)將我重定向到https://www用HTTPS。
重定向到https://www
繁星淼淼
2019-06-05 13:19:25