【发布时间】:2014-03-30 05:14:09
【问题描述】:
我已使用以下代码正确启用 HTTPS 重定向。 访问其中一个 HTTPS 页面后,所有其他 url 都继承了以前的 HTTPS。如何强制所有其他页面使用 HTTP?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteCond %{REQUEST_URI} ^(/checkout|/downloads|/all-products)
RewriteRule ^(.*)$ https://websitename.com/$1 [R,L]
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
【问题讨论】:
标签: wordpress .htaccess mod-rewrite redirect https