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:


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.

  • Please check this gist.github.com/tegansnyder/65ba3396ec7cbf70bec9 link it may help you.
    – mayank
    Dec 10, 2018 at 12:33
  • Already tried, doesn't seems to help.
    – Wolfack
    Dec 10, 2018 at 13:00
  • Hi, Anyone get a solution for this requirement? please share here
    – Ask Xah
    Aug 6, 2019 at 13:02
  • This seems not possible with Magento out of the box. I tried overriding several flows/functionalities in the core code as well, without any success.
    – Wolfack
    Aug 6, 2019 at 13:13


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.