cancel
Showing results for 
Search instead for 
Did you mean: 

Access Magento Admin on Subdomain

Access Magento Admin on Subdomain

 

I have a running store on Magento 2 which has multiple websites that I can access in the front end without any problems, for example:

https://siteone.mymagestore.com
https://sitetwo.mymagestore.com
https://sitethree.mymagestore.com . . .

But when I try to access the admin panel in the same way it redirects me to the main store URL, for example:

 

https://siteone.mymagestore.com/admin -> Redirects to https://www.mymagestore.com/admin

How can I allow accessing the Magento admin panel on URLs like https://siteone.mymagestore.com/admin as well?

 

I have tried many aspects to solve the problem but nothing seems to help. Any help on it would be highly appreciated.

 

 

6 REPLIES 6

Re: Access Magento Admin on Subdomain

Hi @raghubendra_singh,

First I would like to explain this issue if you're running the main website for example 

Mymagestore.com is the main website

siteone.mymagestore.com is the sub website of the above 

you can access only admin panel of main website in magento but you can't able to access the admin panel for each sub websites. because It only takes the admin panel of main site.

If my answer is useful, give kudos & accept as solution

Best regards
Madhuresan
Bootsgrid

Re: Access Magento Admin on Subdomain

Hello @raghubendra_singh

 

Please try this

 

Open your database and put :

 

select * from core_config_data where path like "web/%secure/base_url" or path = 'web/cookie/cookie_domain';

 

Then replace values by old URL.

 

------------------------------------------------
If my answer is useful, please Accept as Solution & give Kudos

Re: Access Magento Admin on Subdomain

@madhuresan_ramanan

 

You are correct, but if the frontend opens for different URLs without any problem, the admin end should also. I know only a single admin panel exist for all the subdomains, but why can't I access it using multiple URLs, similar to the frontend.

Re: Access Magento Admin on Subdomain

Hi @raghubendra_singh,

I checked it there is no option in magento for accessing the individual admin panels for each sub domains in case you may open the database and  modify in your root path directory It only possible to access only single admin panel for single sub domain.

If my answer is useful, give kudos & accept as solution

Best regards
Madhuresan
Bootsgrid

Re: Access Magento Admin on Subdomain

@madhuresan_ramanan

 

You are getting my point wrong, I don't want different admin panel for all the sub-domains, I just want the same admin panel to be accessible for sub-domain URLs as well.

 

Re: Access Magento Admin on Subdomain

Hi @raghubendra_singh,

For multiple stores we can able to access the same admin panel.

If my answer is useful, give kudos & accept as solution

Best regards
Madhuresan
Bootsgrid