0
我用下面的代碼在我的.htaccess的.htaccess上轉發HTTP到HTTPS加強迫WWW
RewriteCond %{HTTPS} off
RewriteRule !^(index(\.php)?)?$ https://%{HTTP_HOST}/$1 [R=301,L]
這項工作做得很好了HTTPS當我添加
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTPS} off
RewriteRule !^(index(\.php)?)?$ https://www.%{HTTP_HOST}/$1 [R=301,L]
迫使WWW盈它只能強制www infront但不轉發http到https。
在此
其forwading指數到https,我希望索引是http – meandme
好吧現在嘗試我更新的答案。 – anubhava
它的工作www.website.com/index.php,但由於主頁是index.php轉發到httpswww.website.com。而不是httpwww.website.com – meandme