网站根目录新建 .htaccess
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L] RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{HTTP_HOST} ^fuwuqijia.com [NC,OR] RewriteCond %{HTTP_HOST} ^www.fuwuqijia.com [NC] RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1