Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I have recently gone from using Shopify Markets for my US market with a sub-folder of /en-us/ to using an expansion store for it. I am using a Geolocation app to redirect US customers to the expansion store but it is not redirecting URLs containing the old sub-folder. Is there a way to redirect /en-us/ traffic to the equivalent URL on the expansion store. For reference all products, collections etc are using the same URL structure on both sites.
Hello @Glitterbels
What's your expansion store URL look like? Is it for a specific country?
The main store URL is https://glitterbels.com/ and the expansion store is https://glitterbels-us.com/. The expansion store is only for our US customers. Before the split the US customers would see https://glitterbels.com/en-us/products/white but now they need to go to https://glitterbels-us.com/products/white. If they go to the normal URL the get redirected fine but if they go to the URL with /en-us/ in it they see a 404.
Given that you have a separate store and domain, the Javascript solution will work, but it may temporarily increase the bounce rate. This is because, after visiting the https://glitterbels.com/en-us/products/white site, we can use Javascript to redirect users to the https://glitterbels-us.com/products/white.
If you have a development team, I recommend suggesting this approach to them. Otherwise, feel free to contact me. (I don't charge for small jobs)
you can Use a bulk redirect app or JavaScript in theme.liquid to redirect /en-us/ URLs to equivalent URLs on your expansion store.
what do you think ?
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025