【发布时间】:2014-05-07 13:46:54
【问题描述】:
我的客户只需要在单个页面上使用 HTTPS。在站点的其余部分,简单的 HTTP。我知道这有点奇怪,但我必须这样做。通过 .htaccess 它可以是:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
如何添加条件以跳过该安全 (https://example.com/secure/) 页面?
【问题讨论】:
标签: .htaccess http mod-rewrite ssl https