【发布时间】:2015-10-27 14:40:56
【问题描述】:
我想将几乎所有页面的 https 重定向到 http,结帐和帐户除外。
这不是将 https 重定向到 http 的方法,我需要一些页面例外,需要在 https 上运行。
如何在我的 htaccess 中定义它?
我试过这个,但不起作用:
Options +FollowSymLinks
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} ^/
RewriteCond %{REQUEST_URI} !^/customer/account/
RewriteCond %{REQUEST_URI} !^/checkout/
RewriteCond %{REQUEST_URI} !^/wishlist/
RewriteCond %{REQUEST_URI} !^/ebizautoresponder/
RewriteCond %{REQUEST_URI} !^/index.php/admin/dashboard/index/key/
#RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
我使用这个 Magento 设置(我删除了整个 URL):
【问题讨论】:
-
鉴于大部分内容已被注释掉,尤其是重写,它不会做任何事情......
-
@MarcB 对不起,应该是这个。
标签: apache .htaccess magento redirect