Hi all,
I need help regarding Store / Store view setup
I have eshop let's say www.abc.cz and www.cba.com in one M2 installation (one administration).
www.abc.cz is focused only for Czech market
www.cba.com is for English speaking people generally.
I want to add store view for DE, FR, ES, so it should work like this:
www.cba.com - english
www.cba.com/de
www.cba.com/fr
www.cba.com/es
I was told that if I add Store views (de / fr / es), so it will have an impact on the website www.abc.cz, whose basic url will then look like this www.abc.cz/cz/ and also on .com, whose base url will be .com/en, I do not want (at least for the Czech domain) the slash for .cz/cz/
The reason being .cz domain has good SEO, so I don't want to change url...
Is it possible to modify it in some way ? How? Thank you for your help.
Solved! Go to Solution.
@emil_emilek Please check the below link.
You have to create plugin or override the method if you want to hide the store code from default store.
Let me know if you stuck.
Thanks
Hello @emil_emilek
Yes, there is a way to append store view code in URL so you can open different store views with different URLs.
For Ex. Website is "abc.com" and we have three store views (en, fr, de) so we can make three URL like
For this change, you need to set below configuration.
Go to Stores >> Configuration >> General >> Web >> URL option
Set "Add Store Code to URLs" to yes. you will get the solution by this.
If my answer is useful, then please give Kudos
Regards,
Deep
@emil_emilek Please check the below link.
You have to create plugin or override the method if you want to hide the store code from default store.
Let me know if you stuck.
Thanks
Very helpful, thank you. It works.