Magento的HTTPS重定向到http主页重定向、主页、Magento、HTTPS

2023-09-02 10:07:51 作者:北街浊酒

谷歌已收录我的网站的主页以https。但是,我需要重定向HTTPS访问http仅此页面。我使用的Magento,今天我有删除我的域名的htaccess的WWW的规则。每一条规则我创建重定向HTTPS到HTTP的主页没有工作。 任何人都有一个解决方案吗? 谢谢

Google has indexed the home page of my website with https. But I need to redirect https to http only this page. I'm using Magento and today I have a rule that removes the htaccess www of my domain. Every rule I created to redirect the main page of https to http didn't work. Anyone have a solution? thank you

推荐答案

尝试

#Redirect your Homepage from HTTPS to HTTP
RewriteCond %{HTTPS} on
RewriteRule ^$ http://%{HTTP_HOST} [L,R]

请参阅 http://www.activo.com/重定向-HTTPS到HTTP换任何-主页/