Here are the steps to set this up:
- Navigate to Commerce > Hosting > Domains
- Add every domain assigned to one web store. Make sure that only one web store is selected at the ‘Web site’ column. Generally one of the domains starts with ‘www’ and other domains have no prefix
- Once all domains have been entered, click Save
- Navigate to Commerce > Websites > Website List
- Click on Edit link
- Click on the Domains subtab
- Choose the primary domain by ticking the Primary Web Site URL field. Optimally, the one with the ‘www’ should be chosen, but it can be other domains you have added at the Domains setup page
- Click Save for the changes