In the same Magento instance I’ve configured two different Websites with only one Store and two Store Views for each Store.
Website 1 -> Store 1 -> Store View 1
Website 1 -> Store 1 -> Store View 2
Website 2 -> Store 2 -> Store View 3
Website 2 -> Store 2 -> Store View 4
and following this guide (https://experienceleague.adobe.com/docs/commerce-operations/configuration-guide/multi-sites/ms-nginx.html?lang=en) to Set up multiple websites with Nginx
Now, if I try to navigate:
domain1.mg -> OK!
domain1.mg/storeview1 -> OK!
domain1.mg/storeview2 -> OK!
domain2.mg -> KO! It redirects to domain1.mg/storeview1 (default storeview)
domain2.mg/storeview3 -> OK!
domain2.mg/storeview4 -> OK!
why this behavour?