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
-
Please check logs and provide more detail here.Nits– Nits2019年11月19日 05:52:04 +00:00Commented Nov 19, 2019 at 5:52
-
I would be more worried about upgrading to the latest version than switching languages.MagenX– MagenX2019年11月19日 08:54:36 +00:00Commented 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.Chirag Prajapati– Chirag Prajapati2019年11月20日 09:22:29 +00:00Commented Nov 20, 2019 at 9:22
2 Answers 2
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
-
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 itMujahidh– Mujahidh2021年05月26日 12:30:27 +00:00Commented May 26, 2021 at 12:30
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.
Explore related questions
See similar questions with these tags.