Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Htacces将一个多跳域的magento http重写为https_Magento - Fatal编程技术网

Htacces将一个多跳域的magento http重写为https

Htacces将一个多跳域的magento http重写为https,magento,Magento,我们正在寻找一个解决方案,为我们的htacces重写,并一直在互联网上寻找,但未能找到解决方案。我们有一个有10个商店的多商店,现在正在进行https测试,首先要测试一个商店,然后测试其他商店。我们已正确设置了所有内容,但无法使301重定向正常工作 我们尝试了以下代码: RewriteCond %{HTTP_HOST} ^domain\.be$ [OR] RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://www.domain.be/$1 [R

我们正在寻找一个解决方案,为我们的htacces重写,并一直在互联网上寻找,但未能找到解决方案。我们有一个有10个商店的多商店,现在正在进行https测试,首先要测试一个商店,然后测试其他商店。我们已正确设置了所有内容,但无法使301重定向正常工作

我们尝试了以下代码:

RewriteCond %{HTTP_HOST} ^domain\.be$ [OR]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.domain.be/$1 [R=301,L]

但使用此代码,其他网店的所有页面也将重定向到此域。是否有人可以帮助我们设置它,以便我们可以开始传输到https?

您需要删除或

RewriteCond %{HTTP_HOST} ^domain\.be$
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.domain.be/$1 [R=301,L]
如果您已将每个域拆分为具有独立vhost(可能),并因此对SSL和HTTP使用单独的块,则应考虑在vhost的HTTP部分中使用重定向301以降低复杂性