I would like to setup multi store. I have two domains:
- example.com
- french.example.com
I use this article: https://www.simicart.com/blog/magento-2-multiple-stores-domains/ and created:
Websites:
French (Code: french)
Main Website (Code: base)
Stores:
French (Code: french)
Main Website Store (Code: main_website_store)
Store views:
French (Code: french)
Default Store View (Code: default)
Base URLs (Store View for Default config) is http://example.com. Base URLs (Store View for French) is http://french.example.com.
It works correct!
But, I would like to use Base URL "example.com" for both domains!
I mean, that
$this->_storeManager->getStore()->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_WEB)
have to return "example.com" for store view French as well!
Now it returns "french.example.com" for French and "example.com" for Default.
Is it possible to setup this way?