admin 发表于 2022-4-23 16:00:00

apache环境http强制跳转https


[*]RewriteEngine on
[*]RewriteCond %{SERVER_PORT} !^443$
[*]RewriteRule ^(.*)?$ https://%{SERVER_NAME}/$1

页: [1]
查看完整版本: apache环境http强制跳转https