在.htaccess裡加上下面設定,強制轉成HTTPS
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
或是
RewriteCond %{HTTP_HOST} yourSite\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://yourSite.com/$1 [R,L]
 

文章標籤

chingsoo 發表在 痞客邦 留言(0) 人氣()