首页 > 网站特定页面启用https

网站特定页面启用https

环境:apache+ubuntu+php
目前需要在一个wordpress站点启用https,但不需要全站,只打算在登录和一个表单申请页面使用。
想问一下该如何配置。
谢谢。


可以参考一下这里​http://www.wosign.com/faq/faq...


用 apache 的 rewrite 处理一下,比如

RewriteCond %{HTTPS} =off [NC]
RewriteCond %{THE_REQUEST} /(login|register) [NC]
RewriteRule ^(login|register) https://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L]
【热门文章】
【热门文章】