htaccess强制使用Https协议 增加.htaccess文件,代码如下:RewriteEngine on RewriteBase / RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://%{SERVE ...