International ecommerce

Subdirectories or Subdomains for a Multilingual Shopify Store: Which Is Better for SEO?

Subdirectories or Subdomains for a Multilingual Shopify Store: Which Is Better for SEO?
Rayne Aguilar
Written by
Rayne Aguilar
Elizabeth Pokorny
Reviewed by
Elizabeth Pokorny
Updated on
November 27, 2026

Summary

  • Google says it has no preference between subfolders (subdirectories) and subdomains for indexing or ranking. Shopify recommends subfolders for most stores because they share your primary domain’s authority and need no DNS setup.
  • On Shopify, language-only subfolders like /fr/ only exist on your primary market. Other markets get a language and country code, such as /fr-ca/.
  • The setup that hurts SEO is serving every language on the same URL. Without a distinct subfolder or subdomain per language, Shopify can’t generate hreflang tags, and search engines only see one version.
  • For AI search, the page’s language matters more than the domain type. In Weglot’s cross-country study, French-language sources made up 30% of citations for French questions, but only 16% came from .fr domains: the rest were French pages on global sites.

If you sell in more than one language on Shopify, you need to decide where each language lives: in a subfolder (yourstore.com/fr/), on a subdomain (fr.yourstore.com), or on a separate country domain (yourstore.fr).

In short, Google treats subfolders and subdomains equally, and both work for multilingual SEO as long as each language has its own URL and hreflang tags. Shopify’s own documentation recommends subfolders for most stores because they’re the simplest to run and build on your existing domain authority, while subdomains suit stores that need each market to run as its own site.

What Google and Shopify Say

Google’s crawling and indexing FAQ is clear on this: choose whatever is easiest for you to organize and manage, because Google has no preference between subfolders and subdomains from an indexing or ranking perspective. Its multilingual site guidelines say that subdomains make it easier to separate sites, while subfolders need less maintenance.

Shopify’s international SEO documentation makes a recommendation on top of that. It says subfolders share domain authority with your primary domain, while some search engines treat subdomains as separate sites that build authority from scratch. That’s why Shopify suggests subfolders for most stores and subdomains when you need clear separation between markets.

For a broader look at the trade-offs beyond Shopify, see our guide to subdirectories vs subdomains.

How Each Setup Works on Shopify

Shopify handles a few technical details differently depending on the structure you pick:

SubfoldersSubdomains
Example URL

yourstore.com/fr/ or yourstore.com/fr-ca/

fr.yourstore.com

Setup

Created from your primary domain in Shopify Markets

Free to add, but each one needs its own DNS record

Domain authority (per Shopify)

Shared with your primary domain

Builds independently

Language codes

Language-only (/fr/) on your primary market; language plus country (/fr-ca/) on other markets

Assigned per market, with a default language for each

If your primary domain changes

Subfolder URLs change with it

Unaffected

Hreflang, canonicals, and sitemaps

Generated automatically

Generated automatically

The language code rule is what confuses most people. Shopify’s international domains documentation says language-only subfolders such as /fr/ can only exist on your primary market, so a French version for Canada lives at /fr-ca/ and a French version for France at /fr-fr/. If you sell in one country but several languages, that’s simple; if you sell across many markets, plan your URL list before you set anything up.

When Subdomains Make More Sense

Subdomains are a better fit when each language or market behaves like its own business. That might mean a local team that manages content, campaigns, and analytics separately, or a market whose catalog and messaging differ enough from your main store that you want to track and report on it in isolation.

If you already run subdomains that rank well, there’s no need to change your URL structure.

Country domains (yourstore.fr) are a step further: Shopify calls them the strongest local signal, but each one needs separate registration, and some, like .fr and .ca, have residency or business requirements. Our article on whether you need a separate domain or subdomain per language walks through when that extra work is necessary.

The Setup That Hurts SEO: One URL for Every Language

Shopify lets markets use your primary domain only, which means every language and currency is served on the same URL. It’s the fastest option to set up, but it’s the one structure that works against multilingual SEO.

Shopify only generates hreflang tags for markets with a distinct domain, subdomain, or subfolder. With one shared URL, there are no alternate versions to point to, and Google advises against switching languages based on cookies or browser settings because crawlers may never see the other versions.

One more pitfall to avoid: if you add 2 domains to the same market, give each a different language. Shopify warns that 2 domains targeting the same language can be flagged as duplicate content.

What This Means for AI Search

If you also want to show up in ChatGPT, Gemini, or Google’s AI Overviews, the domain type matters less than having a full version of each page in the shopper’s language.

In Weglot’s cross-country study of over 16,000 AI responses, French-language sources made up 30% of citations for questions asked in French, but only 16% came from .fr domains; the rest were French pages hosted on global sites. In Japan, 26% of citations went to .jp domains, and counting Japanese pages on global platforms like ja.wikipedia.org and jp.linkedin.com raised that share to 35%.

Weglot’s 2026 citation study points the same way: 95% of links from Spanish questions led to Spanish-language pages, and websites covering a topic in both English and Spanish had a 98% higher citation rate. Subfolders and subdomains can both deliver that, as long as every language version is crawlable and fully translated. For the rest of the AI visibility checklist, read how to get your Shopify store recommended by ChatGPT and AI search in multiple languages.

Changing Your Structure Later

You can switch between subfolders and subdomains in Shopify Markets, but every old URL needs a 301 redirect to its new address, and you can import redirects in bulk with a CSV file. If you delete a market that uses subfolders, its URLs return a 404 page until you add those redirects.

After a switch, check that each language version points to the right alternates. Our Shopify hreflang guide covers how to audit them and fix duplicates.

Setting Up Either Structure With Weglot

Weglot’s Shopify app supports both. Subdirectories work with Shopify Markets, so each URL combines the language and the market (for example, /fr-ca/), and our support team helps with the Markets URL setup. Subdomains need one DNS record per language.

Either way, Weglot adds hreflang tags and translates your metadata, so each language version is ready to be indexed. If you use separate country domains in a Shopify Markets setup, keep in mind that each domain runs as its own Weglot project, which counts toward your word count separately.

Pick the Structure You Can Maintain

For search engines, the choice between subfolders and subdomains on Shopify matters less than the basics around it: a distinct URL for every language, hreflang tags that connect them, and translations that cover the whole page. Choose the structure your team can run consistently, then make each language version complete.

Ready to translate your Shopify store? Weglot offers a 14-day free trial. Start your free trial.

direction icon
Discover Weglot

Good things come to those who wait. International traffic doesn’t.

We’ll get your first languages live. You decide how far you want to go. Try Weglot for free today.

In this article, we're going to look into:

This page is available in 11 languages with Weglot

0 visits from translated pages in the last 90 days.

Read articles you may also like

FAQ icon

Common questions

No items found.

Blue arrow

Blue arrow

Blue arrow