Skip to content

Magento 2 – Multistore with same store codes

We want to create the following setup:

Main Web Site (code: store) -> Store BE (code: store-be) -> Store View NL (code: nl)
Main Web Site (code: store) -> Store BE (code: store-be) -> Store View EN (code: en)
Main Web Site (code: store) -> Store NL (code: store-nl) -> Store View NL (code: nl)
Main Web Site (code: store) -> Store NL (code: store-nl) -> Store View EN (code: en)

Both stores, do have their own domain (.be and .nl) and we want for both domains the English language as store code for URL /en/.

Problem now is that it is not possible to create multiple store views with the same code.

How can we still achieve what we want, is there a workaround for this? So we get the following:

example.nl/en/
example.be/en/