【发布时间】:2011-07-21 13:14:52
【问题描述】:
我已经做了足够多的研究,发现要将全站范围内的所有 https 页面重定向到相应的 http 页面,我需要使用此代码...
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
我的问题是,有一些页面我仍然想保留为 https。举例来说,假设我希望 page1.php、page2.php 和 page3.php 保留为 .https,并重定向站点上的所有其他内容。有人知道怎么做吗?
【问题讨论】:
标签: linux http .htaccess redirect https