cancel
Showing results for 
Search instead for 
Did you mean: 

Under the same website and the same store return 404 error when change view

SOLVED

Under the same website and the same store return 404 error when change view

Hello~~Man:

magento 2.3.4 

Add another English view under the same store in the same website of Admin, and then add /en after the default URL in Store Configure. The added English view is displayed in the foreground language switcher. However, when you click "English", the error is 404,What else do I need to modify or add?

 

Thank you very much !

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: Under the same website and the same store return 404 error when change view

Hello @qqcom857a 

 

Make sure you configured Base URL and Store URL correctly, you can take reference for configuring it :

https://www.mageplaza.com/kb/how-to-configure-store-urls-magento-2.html

 

after saving, run below commands :

php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush

Let us know if it works !

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

View solution in original post

Re: Under the same website and the same store return 404 error when change view

@qqcom857a ,

check your homepage which is configured for that store. 

or Edit the default page in CMS 

you need to select the newly created view in the page if you have not selected ALL Option. 

 

Kindly Accept as a Solution if this works for you and give Kudos Smiley Happy 

View solution in original post

2 REPLIES 2

Re: Under the same website and the same store return 404 error when change view

Hello @qqcom857a 

 

Make sure you configured Base URL and Store URL correctly, you can take reference for configuring it :

https://www.mageplaza.com/kb/how-to-configure-store-urls-magento-2.html

 

after saving, run below commands :

php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush

Let us know if it works !

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: Under the same website and the same store return 404 error when change view

@qqcom857a ,

check your homepage which is configured for that store. 

or Edit the default page in CMS 

you need to select the newly created view in the page if you have not selected ALL Option. 

 

Kindly Accept as a Solution if this works for you and give Kudos Smiley Happy