>  Q&A  >  본문

php - 网站特定页面启用https

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

PHP中文网PHP中文网2749일 전337

모든 응답(2)나는 대답할 것이다

  • PHPz

    PHPz2017-04-10 15:20:54

    用 apache 的 rewrite 处理一下,比如

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

    회신하다
    0
  • 黄舟

    黄舟2017-04-10 15:20:54

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

    회신하다
    0
  • 취소회신하다