简体   繁体   中英

How to redirect https request to http in magento?

My magento site is loading well on http request, http://my-magento-site.com . But when I try lo load using https://my-magento-site.com It redirect to an error page, https://my-magento-site.com/cgi-sys/defaultwebpage.cgi . How do I prevent this, and redirect to http request ?

I tried to add this code on my root .htaccess file but not redirect,

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

How do I fix this ?

If .htaccess Rewrite rule is not working then you can set this by magento settings. Goto >> system >> configuration >> web {under general tab} You will find unsecure and secure tabs. Write Base URL http://my-magento-site.com in both URLs. You will always redirect to http:// only

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM