Redirect site translation from subdomain to subdirectory

Solved
Fredydb
Excursionist
17 0 1

Hello everyone,
I am looking for ideas and tips on how to go about the following as smoothly as possible.

I am in the process of overhauling a french-as-first-language shopify store, "mystore.com".
The domain name is bought and hosted by shopify

Currently the english translation sits at subdomain "en.mystore.com" and points to a dynamic translation service
Once the whole process is done, i am hoping to have the english version accessible at subdirectory "mystore.com/en"

I am planning to change translation method and hoping to improve the quality of the translation during the process, but otherwise page content would be similar.
Path would change from: "en.mystore.com/products/6550" to "mystore.com/en/products/6550"


Questions i have are these:

What would be the smartest way to create redirects to the english version?
Is there somewhere i can upload a rewrite rule instead of having thousands of redirect lines in the admin redirects page?
Anything i need to pay attention to in this process regarding search engines?

Thanks!

Frederic



0 Likes
KieranR
Shopify Partner
214 19 52

One option on Shopify Advanced or Plus you can use the inbuilt international domains feature. 

They can be setup with subdomains - eg: 

  • de.johnsapparel.com
  • fr.johnsapparel.com
  • johnsapparel.com

Or a ccTLD approach like: 

  • johnsapparel.de
  • johnsapparel.fr
  • johnsapparel.com

Then you can use a language app to help with the translations.

Another common approach I see is to use multiple Shopify store instances, Paul Rogers has a good blog post on this.

Full time Shopify SEO guy, based in NZ. Sometimes freelance outside the 9-5.
0 Likes
Fredydb
Excursionist
17 0 1

Thanks for the info Kieran,
Apologies, i think i might of not been clear with this question..
The website translation WILL effectively switch from being hosted at the subdomain "en.myshop.com" to the subfolder "myshop.com/en"
I am wondering about how to efficiently build the url redirects too get customers to the content they want and not loose google juice in the process

0 Likes
KieranR
Shopify Partner
214 19 52

This is an accepted solution.

Shopify redirects can be a bit limited for subdomains because they only take in the URL path like /old-page-path as a "Redirect from", and don't have any condition based redirect capability. So there could be some potential for conflicts and other issues with existing URLs on the site. 

To do it efficiently, I would say that you'd need to find repetitive redirect patterns, then apply rule-based conditional redirects hosted outside of Shopify. Assuming that the scale and complexity of the redirect mapping makes it possible to can construct the right rules. Could use a basic PHP/Apache web server running on a subdomain for this with .htaccess rules, but there's a few different ways to implement. 

Also, there may be an aspect of crawling and language-detecting the existing pages in order to bulk generate redirect mapping. If that's the case then might be something that at tool like Screaming Frog extraction and hreflang detection could help with.

If it's a small number of pages like less than 1k then do it 1-to-1 manually. If a lot more, then consider more technical approaches. Really depends on the scale as to what's gonna save you time.

 

Full time Shopify SEO guy, based in NZ. Sometimes freelance outside the 9-5.
Fredydb
Excursionist
17 0 1

Great info Kieran, thanks!

0 Likes
Fanny27
Excursionist
15 0 5

Hi there !

How did you succeed to have the URL subfolder like "myshop.com/en" ? I'm trying to figure out how to do this for my website but I feel like Shopify doesn't offer this solution.
Thank you very much for your future answer, it's a great help.

0 Likes
Fredydb
Excursionist
17 0 1

Hi Fanny, from my experience you can't manually create subfolders in shopify.
You would need to enable multi-language & use a translation app to have "myshop.com/en" working.

0 Likes