我巳安裝SSL, 如何自动将HTTP重定向到HTTPS ?
我巳嘗試修改 .htaccess, 但不成功.
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
相似问题