扫码关注官方订阅号
环境:apache+ubuntu+php 目前需要在一个wordpress站点启用https,但不需要全站,只打算在登录和一个表单申请页面使用。 想问一下该如何配置。 谢谢。
认证高级PHP讲师
用 apache 的 rewrite 处理一下,比如
RewriteCond %{HTTPS} =off [NC] RewriteCond %{THE_REQUEST} /(login|register) [NC] RewriteRule ^(login|register) https://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L]
可以参考一下这里http://www.wosign.com/faq/faq...
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
用 apache 的 rewrite 处理一下,比如
可以参考一下这里http://www.wosign.com/faq/faq...