我正在尝试将某些magento网址重定向到http
我目前的网址是
https://www.amitbera.com/shop.html
https://www.amitbera.com/shop/abc.html
https://www.amitbera.com/shop/abc.html
https://www.amitbera.com/shop/jde.html
https://www.amitbera.com/shop/fg.html
https://www.amitbera.com/shop/fg/gyt.html
https://www.amitbera.com/shop/fg/gyt/test.html
我想将所有商店网址重定向到 http url
。就像函数一样的mysql函数 shop%redirect to 301 https to http
http://www.amitbera.com/shop.html
http://www.amitbera.com/shop/abc.html
http://www.amitbera.com/shop/abc.html
http://www.amitbera.com/shop/jde.html
http://www.amitbera.com/shop/fg.html
http://www.amitbera.com/shop/fg/gyt.html
http://www.amitbera.com/shop/fg/gyt/test.html
答案 0 :(得分:1)
您可以在Magento Admin面板中更改此内容。
系统 - >配置 - >网络 - >安全
Use Secure URL's in Frontend: Yes
将该选项设置为no,它应该自动重定向到http://。
答案 1 :(得分:1)
此代码解决了这个问题
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]
!!!!!!!!
由于