Trying to setup multiple domains for my multistore webshop.
But i cant figure out how to link a second domain to my second store.
I am using magento 2.2, a fresh install on Vimexx magento hosting.
Anyone who can help me. Once i open my second store: sunglasses2buy.nl it opens a direct admin page. if i set sunglasses2buy as baseurl in magento,How to solve this.
You can easily add second domain from store url.
From backend -> store -> configuration -> General -> web -> Then from top select your second store -> and add domain to base url (secure) and base url (non-secure) that will easily add second domain.
Fore more reference refer this link - https://www.mageplaza.com/kb/how-to-setup-multiple-stores-magento-2.html
You can easily add second domain from Store Url option !!
logged in to your magento admin panel -> Click on store -> configuration -> general -> web -> then select second store from top dropdown -> then add base url(secure) second domain and same for base url(unsecure) second domain.
Then save configuration - clear cache and flush cache. It will works
Refer this devdocs link for more details - http://devdocs.magento.com/guides/v2.0/config-guide/multi-site/ms_websites.html