更新时间:2023-02-26 09:24:01
它将为PHP的所有版本工作,将迫使SSL和WWW所有裸域和链接:
It will work for ALL versions of php and will force SSL and www to all naked domains and links:
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS} off
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE]
玩得开心。
本杰明