cancel
Showing results for 
Search instead for 
Did you mean: 

Please help in setting up separate URLs for multi-stores

SOLVED

Please help in setting up separate URLs for multi-stores

I need to set up different URLs for different subdomains for each web site/store and I'm having trouble locating an effective method of how to do this

I'm using Magento version 2.2.3

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Please help in setting up separate URLs for multi-stores

Yes - From Magento Side - you just need to add sub-domain from here only.

 

There is no other settings you need to do Rest of the settings you need to do it from server side.

  

if issue solved,Click Kudos & Accept as Solution

View solution in original post

6 REPLIES 6

Re: Please help in setting up separate URLs for multi-stores

Yes you can easily set a different URLs for different domains for each store/website , Magento have native functionality for that.

 

Kindly follow below steps :

 

1) Logged in to your magento 2 Admin panel.

 

2) Go to store -> Configuration -> General Settings -> Web

 

3)  From web you will see URL options , Base URLs options , Base URLs(Secure)

 

4) Over there Select store from the top of the page you will see store view option dropdown select store from there and add the URLs in Base URL and Base URLs secure .

 

It will works for you.

if issue solved,Click Kudos & Accept as Solution

Re: Please help in setting up separate URLs for multi-stores

Well this solution is causing the stores to be www.domain.com/store1, www.domain.com/store2 and etc what I would like it to be like store1.domain.com/, store2.domain.com and etc

Re: Please help in setting up separate URLs for multi-stores

No - i guess you have enabled the show store code options.

 

You just need to add your subdomain name url like - subdomain.domain.com 

 

in to base url and base url secure 

 

You need to select your store from the top of the settings page - and then add your domain to base url and base url (secure)

 

it will works for you.

if issue solved,Click Kudos & Accept as Solution

Re: Please help in setting up separate URLs for multi-stores

Is it true that I was in the wrong place, but the page still does not open, does that mean I have to configure the subdomain in apache?

Re: Please help in setting up separate URLs for multi-stores

Yes - From Magento Side - you just need to add sub-domain from here only.

 

There is no other settings you need to do Rest of the settings you need to do it from server side.

  

if issue solved,Click Kudos & Accept as Solution

Re: Please help in setting up separate URLs for multi-stores

I'm trying to do exactly the same on Magento 2.3 with Apache 2.4 you say

 


There is no other settings you need to do Rest of the settings you need to do it from server side.

  


What do I need to do on the server side????

 

I'm not trying to add subdomains, just the subfolder method as listed here: www.sonic8.com

 

It was easy to do in Magento 1 but with Magento 2 it's driving me nuts!!

 

Please help!