cancel
Showing results for 
Search instead for 
Did you mean: 

Store view and URLs address

SOLVED

Store view and URLs address

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Store view and URLs address

@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.

 

Hide Store Code 

Let me know if you stuck.

 

Thanks

View solution in original post

3 REPLIES 3

Re: Store view and URLs address

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 

  1. abc.com/en
  2. abc.com/fr
  3. abc.com/de

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
 
 

Re: Store view and URLs address

@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.

 

Hide Store Code 

Let me know if you stuck.

 

Thanks

Re: Store view and URLs address

Very helpful, thank you. It works.