https到http在magento站点中通过.htaccess更改url,但签出或我的帐户页面除外

https到http在magento站点中通过.htaccess更改url,但签出或我的帐户页面除外,.htaccess,magento,ssl,https,.htaccess,Magento,Ssl,Https,我的要求是在http上打开所有https url并签出,并且我的帐户页面始终在https上打开。 我尝试了这个代码,但没有解决 RewriteEngine on # From https to http RewriteCond %{HTTPS} on RewriteCond %{REQUEST_URI} ^/ #RewriteCond %{REQUEST_URI} !^/customer/account/ #RewriteCond %{REQUEST_URI} !^/checkout/multi

我的要求是在http上打开所有https url并签出,并且我的帐户页面始终在https上打开。 我尝试了这个代码,但没有解决

RewriteEngine on
# From https to http
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} ^/
#RewriteCond %{REQUEST_URI} !^/customer/account/
#RewriteCond %{REQUEST_URI} !^/checkout/multishipping/login/
#RewriteCond %{REQUEST_URI} !^/wishlist/
#RewriteCond %{REQUEST_URI} !^/index.php/admin/dashboard/index/key/
#RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]

# From http to https
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} ^/checkout/cart/ [OR]
RewriteCond %{REQUEST_URI} ^/customer/account/ [OR]
RewriteCond %{REQUEST_URI} ^/checkout/multishipping/login/ [OR]
RewriteCond %{REQUEST_URI} ^/wishlist/ [OR]
RewriteCond %{REQUEST_URI} ^/index.php/admin/dashboard/index/key/
RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301]

请帮助我

你可以像下面这样使用,它在我的一个网站上为我工作

############################################
## enable rewrites

Options +FollowSymLinks
RewriteEngine on

RewriteCond %{SERVER_PORT} 80 
    RewriteRule ^index.php/onepagecheckout/?$ https://%{HTTP_HOST}/index.php/onepagecheckout 
[R,L]

   # RewriteRule ^index.php/yourpageurl/?$ https://%{HTTP_HOST}/index.php/yourpageurl
[R,L]

希望您能理解并对您有用。

此代码解决了此问题

Options +FollowSymLinks
    RewriteEngine on


RewriteEngine on
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^(shop|blog|stockists|inthepress|contacts|review|home) http://www.example.com%{REQUEST_URI} [R=301,L]

RewriteCond %{HTTPS} on
RewriteRule ^$ http://%{HTTP_HOST} [L,R]

你的第一条规则在大部分地方都有评论。谢谢回复。我的要求是,我尝试点击一个url,并将其更改为