Redirect from subfolder to separate domain

Redirect from subfolder to separate domain

Glitterbels
Tourist
5 1 2

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.

Replies 4 (4)

prakashVt
Shopify Partner
226 20 34

Hello @Glitterbels 

What's your expansion store URL look like? Is it for a specific country? 

- Free Customer Dashboard apps that enhanced your customers' experience - VTN Customer Dashboard
- Feel free to Contact for more help (Free Support): [email protected]
Glitterbels
Tourist
5 1 2

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.

prakashVt
Shopify Partner
226 20 34

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)

- Free Customer Dashboard apps that enhanced your customers' experience - VTN Customer Dashboard
- Feel free to Contact for more help (Free Support): [email protected]

Waletech
Shopify Partner
7 1 2

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 ?

Waletech