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.