启用强制https访问

为了从http跳转到https网址,在本站点根目录的.htaccess中增加一条转向规则:
RewriteCond %{SERVER_PORT} ^80$ RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]

Read more