I have a main domain,
www.mycompany.com, which has several groups of sites, which are available in several languages:
www.mycompany.com/international www.mycompany.com/sales/en www.mycompany.com/sales/fr www.mycompany.com/customers/en www.mycompany.com/customers/fr etc.
The problem is that when I set up the Sites, Craft force to set a primary Site. So I choose the
But when Site is saved, the Base URL is displayed as
www.mycompany.com instead of
www.mycompany.com/international, and all URLs in this one are now like
www.mycompany.com/my-slug instead of
This probably can be solved by pre-checking all links, adding the slug inside the URL if current Site id is the
www.mycompany.com/international version, then adding a routing rule for all
But it sounds a bit tricky in the some cases, so I wondered if there was a cleaner way to achieve this?