Apache HTTP Server 代码填写
网站目录新建 .htaccess


################################################################
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
################################################################