I want to change the store of my magento website based on the url. For example if I open up a URL that exists on my secondary store I get a 404 if it's not the first time entering the website. Basically I think I would need an observer to check where that url is available and switch the store accordingly. Obviously the urls will be unique. Thanks and I hope someone can help me or give me a direction as I have looked for modules and other info but all I could find was geoip redirection.

  • Please, I have faced the same issue. Whats the solution? Jan 12 at 13:17

1 Answer 1


follow these tutorial they have explained it nicely.




  • Thanks I have managed to do it with .htaccess in the end.
    – andrewtduk
    Aug 11, 2020 at 7:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.