RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L]
相关文章:
- Apache自动跳转到 HTTPS 2022-12-23
- Apache配置http跳转https教程 2021-05-07
- http强制跳转到https 2021-12-13
- 服务器 apache配置https,http强制跳转https 2021-10-05
- nginx 转将http跳转到https 2021-11-21
- nginx http跳转到https - 季枫 2021-11-21
- Apache环境强制跳转到https 2022-12-23