cancel
Showing results for 
Search instead for 
Did you mean: 

Can Magento 2 store views have an international URL structure with /be/fr/ instead of /be_fr/?

Can Magento 2 store views have an international URL structure with /be/fr/ instead of /be_fr/?

Dear Magento users and developers,

 

We're planning to develop a multi-country and multi-language shop in Magento 2. 

 

I would very much appreciate it if someone could answer me the questions below.

 

This is what we want: domain.com/country/language/

 

Homepages of store views with a trailing slash:

  • domain.com/nl/nl/ (homepage of store view Netherlands/Dutch)
  • domain.com/nl/en/ (homepage of store view Netherlands/English)
  • domain.com/be/nl/ (homepage of store view Belgium/Dutch)
  • domain.com/be/en/ (homepage of store view Belgium/English)
  • domain.com/be/fr/ (homepage of store view Belgium/French)

Other pages than homepages we don't want a trailing slash:

  • domain.com/nl/nl/slug (CMS pages of store view Netherlands/Dutch)
  • domain.com/nl/en/slug (CMS pages of store view Netherlands/English)
  • domain.com/be/nl/slug (CMS pages of store view Belgium/Dutch)
  • domain.com/be/en/slug (CMS pages of store view Belgium/English)
  • domain.com/be/fr/slug (CMS pages of store view Belgium/French)

Is this possible in Magento 2? What are the default Magento 2 settings for trailing slashes?

For many Magento 2 webshops we see /be_fr/ instead of /be/fr/, is the last option possible? Is it possible to use a slash in the store view code?