Posted 2018-04-05Updated 2019-04-04技术几秒 read (About 30 words)强制跳转HTTPSApache网站根目录新建 .htaccess RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L] Nginxif ($server_port = 80) { rewrite ^(.*)$ https://$host$1 permanent; } 强制跳转HTTPShttps://blog.xsy.fun/posts/2018-04-05 强制跳转HTTPS/AuthorLinus XiongPosted on2018-04-05Updated on2019-04-04Licensed under