其实早就申请的SSL证书,也一直可以通过https访问,这次其实只是在.htaccess文件增加了如下语句
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301] </IfModule>
这样就强制所有页面重定向到了https了。