Apache HTTP跳转到HTTPS 作者:马育民 • 2020-04-24 21:39 • 阅读:10093 修改文件`.htaccess`,该文件目录: - windows:`Apache2.2\htdocs\.htaccess` - linux:` /var/www/html/.htaccess` 内容如下: ``` RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L] ``` 原文出处:http://malaoshi.top/show_1EF5P2EE7bZ8.html