0

This is a Magento 2.3.2 CE project

Let's assume url of default storeview is https://www.domain.com/store/es

Url of second storeview is https://www.domain.pt/pt

Language switcher gives error, redirecting to same storeview 404 page... is this a bug or a feature? I understand this url configuration is weird, and it makes no sense using store codes in this case

asked Oct 17, 2019 at 8:01
3
  • Please check logs and provide more detail here. Commented Nov 19, 2019 at 5:52
  • I would be more worried about upgrading to the latest version than switching languages. Commented Nov 19, 2019 at 8:54
  • Hello @raul, Are you able to provide your root directory structure? I think you have created the wrong multi-store view. Commented Nov 20, 2019 at 9:22

2 Answers 2

1

i have also faced the similar issue last month and this is how i had fixed it.

try the below method hope this will work for you also

I managed to fix the problem by adding following code in .htaccess file:

SetEnvIf Host [domain1] MAGE_RUN_CODE=[website1 code]
SetEnvIf Host [domain1] MAGE_RUN_TYPE=website 
SetEnvIf Host [domain2] MAGE_RUN_CODE=[website2 code] 
SetEnvIf Host [domain2] MAGE_RUN_TYPE=website

let me know if this works for you

answered Nov 22, 2019 at 6:26
1
  • i have a wired issue, I can view my website by typing emerald.lk, but if i add www emerald.lk in front i am getting an error. Can you please help me to fix it Commented May 26, 2021 at 12:30
0

Without knowing more details, I had a similar issue and it was a result of having

<referenceContainer name="content" display="false"/>

in the custom layout update section of any category/CMS page. The reason for this is that Magento stores two key template files in the content referenceContainer to keep customer/store data up to date.

answered Nov 19, 2019 at 16:50

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.