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 ?
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024