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.


follow these tutorial they have explained it nicely.




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

Your Answer

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

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