Which is better for optimizing your multilingual website for search engine traffic: subdirectories or subdomains?
Despite the similarity in their names, these two website structures work differently. They naturally also have different implications for search engine optimization (SEO). Choosing the right structure can potentially help your main website rank higher on the search engine results pages (SERPs) which is an important consideration when it comes to meeting your SEO goals.
And apart from SEO considerations, other situations might call for using one website structure over the other.
With all these in mind, let’s take a deeper dive into what subdirectories and subdomains are, their pros and cons, when you should use each website structure, and how such a decision can affect your search engine rankings.
Website structures fall under the branch of technical SEO, which involves enhancing a website’s technical setup for higher search rankings. The word “technical” tends to scare people off, but we’ll keep our explanations on subdirectories and subdomains simple!
Subdirectories are content subfolders that help subdivide sections of your primary website. Each subdirectory shares your website’s top-level domain (TLD), and its URL structure always comes after the root domain. The following are all examples of subdirectories:
In our example, you’ll see that we have a URL for the main page for an online shop and a subdirectory in this shop page for a section on shoes. And within the shoe subdirectory, we have another subdirectory for shoe accessories.
With such a hierarchy, subdirectories are typically used to organize content on a single website. If you’ve ever looked at the file paths for files, folders, and subfolders stored on your computer – such as “My Stuff\Travel Photos\Italy 2019\Colosseum.jpg” and “My Stuff\Finances\Credit Card Bills\2021” – you’ll find them to be pretty similar to the URL structures for website subdirectories!
There is also no limit on the number of subdirectory levels, so you could technically keep dividing your subdirectories into further subdirectories forever. (We wouldn’t advise on doing so, though. We’ll share more about why later.)
In comparison, subdomains are sections of a website that have their own domain name. Here are examples of subdomain URL structures taken from the weglot.com website:
As you can see, subdomains have their “main name” before the root domain. This is unlike subdirectories, which have them after the root domain.
While subdomains are still part of a website as a whole, each subdomain is treated as a separate branch of websites under your primary domain. It also isn’t possible to create subdomains of subdomains. This results in subdomains having a flatter hierarchy than subfolders. Such a structure makes them useful for separating your website content into different websites, such as where you want to host your support pages on one subdomain and your blog on another.
Side note: while you can’t create subdomains out of subdomains, you can still have subdirectories in subdomains, such as “https://support.weglot.com/category/244-getting-started”!
While subdirectories and subdomains both help you organize the contents of your global website, their characteristics make them more useful in certain situations over the other. Here, we’ll examine their pros and cons and when it might make more sense to use a subdirectory structure over a subdomain one (and vice versa).
For SEO purposes, search engines treat subdirectories as part of your main domain. This means that the Domain Authority and Page Authority of your subdirectory pages are closely tied to those of your root domain and vice versa.
(Quick recap: “Domain Authority” and “Page Authority” are scores developed by the Moz SEO tool to determine how high a website, or certain web pages of a website, are respectively likely to rank on the SERPs. A higher score indicates a higher website or web page authority, and hence a higher likelihood of the website or web page ranking well.)
If your root domain has a high Domain Authority, then your subdirectory pages will inherit this high Domain Authority as well. As a result, when you publish a piece of content to a subdirectory page on a root domain with a high Domain Authority, it may enjoy higher SEO rankings than if you were to publish the same content to a subdomain with a lower Domain Authority.
In addition, subdirectories can make your website easier to navigate if used correctly. They can give your URLs a clear hierarchy that helps users understand what they’re clicking on and the relationships between your web pages.
For example, we may have these two URLs that lead to the same web page:
Which URL looks more appealing to click? It’s the second one, definitely – because you can actually understand what the URL is saying. Meanwhile, the first URL just looks like a bunch of gibberish.
At the same time, as you read the second URL, you can guess that it’s for a blog post in the website’s blog section, where the blog post is titled “Hello world.” But from just looking at the first URL alone, it’d be impossible to guess what the web page is about.
While subdirectories are helpful for categorizing web pages, it’s important not to go overboard with subdirectory creation. That’s because having too many layers of subdirectories just makes your URLs very long and confusing. Take a look at this hypothetical URL, which seems to go on for forever:
Such long URLs can create a poor user experience as users might get intimidated by their length and avoid clicking them (if you’ve also used them as your links’ anchor text). Users may also be deterred from sharing your URLs with others, especially if they need to type the URL manually.
Hence, even if you have a website that requires using complex hierarchies of subdirectories, try to flatten these hierarchies as much as possible. For example, consider simplifying your website categories and subcategories to include only those that are truly essential. You may also consider using subdomains instead (more on this later).
Subdirectories are perfect for content-rich websites where the content you publish is relevant to the purpose of the main site. For example, you may have launched a website to promote your product and want your website to rank as high as it can in the SERPs. As part of your content marketing and SEO strategy, you decide to publish blog posts that will rank for keywords related to your product, in the hope that searchers who land on your blog posts will check your product out in more detail.
In this case, you’ll want your blog content to be considered part of your main website that features your product. That’s because the authority that your blog posts accrue will influence that of your main website, and help it rank higher on the SERPs as a whole.
For this reason, you can see that the Weglot blog URL is structured as “weglot.com/blog” instead of “blog.weglot.com”!
Another use case for subdirectories would be where you want to categorize different website sections. We can use the Nike website as a case study here: when you visit it, you’ll see that the company has separate subdirectories for web pages meant for users from different countries, such as:
Using subdomains, you can create more distinct, separate websites for different campaigns, regional variants, or distinct branches of your business. For example, if you operate an online store in France, New Zealand, and Spain, you might have these subdomains for each country of operation:
Such subdomains, which use the two-letter country code for each country of operation, make it immediately clear to users that they are visiting a regional variant of your online store.
With subdomains being treated as separate websites from your main website, they don’t have any influence on the authority of your root domain (and vice versa). Hence, even if you have a subdomain that is ranking extremely well in the SERPs, it will have little to no impact on your main website’s search rankings.
As mentioned, you can use subdomains to create different regional versions of your website. These subdomains won’t share your main website’s Domain Authority or Page Authority. However, this situation can actually be beneficial if your website variants cater to entirely different audiences and target different keywords, and you don’t want the rankings of one website to affect those of another.
If you go to the Wikipedia website, for example, you’ll see that it has subdomains such as the following for the regional versions of its online encyclopedia:
Even if you don’t have region-specific versions of your website, you may want to use subdomains to spread content across multiple websites and have such content treated as separate websites for SEO purposes. For instance, the HubSpot website (https://www.hubspot.com/) has subdomains such as:
Similarly, if you are running digital marketing campaigns that need separate branding and landing pages, it might make sense to park them under different subdomains instead of your main domain.
Just take it from toy manufacturer Lego. Apart from its main “lego.com” domain, it also has an “https://ideas.lego.com/” subdomain where users can submit ideas for new Lego products under a Lego Ideas campaign.
Finally, it may make sense to use subdomains out of sheer technical necessity. This could be where:
For an example of the second situation, take a look at the Flodesk website. This email platform has its main domain at “https://flodesk.com/” and uses third-party help desk software for its knowledge base. You’ll see that the URL structure for its knowledge base is hence “https://help.flodesk.com/” instead of, say, “https://flodesk.com/help”.
URL appearance and website organization aside, SEO is a big consideration when website owners decide whether to use subdirectories or subdomains for their website content. Does one website structure inherently have an advantage over the other when search engines decide how to rank web pages?
The answer is no. In this video, Search Advocate for the Google search engine, John Mueller, shares that Google’s algorithms don’t prefer subdomains over subdirectories (or vice versa) when ranking pages:
In particular, he says:
“Google Web Search is fine with using either subdomains or subdirectories […] [Setting up parts of a website as subdirectories is] fine for us. This helps us with crawling since we understand that everything’s on the same server and can crawl it in a similar way. […]
[Putting website sections in separate subdomains] also works for us. […] We do have to learn to crawl them separately, but for the most part, that’s just a formality for the first few days.
So in short, use what works best for your setup and think about your longer-term plans when picking one or the other.”
Whether you use subdomains or subdirectories thus isn’t a ranking factor that affects how Google ranks your website. That said, using the subdirectory structure for content has a clear edge in helping your main website rank better, if this is your goal.
That’s because, as we’ve shared above, website content that you park under a subdirectory will share the authority of your main website, whereas website content located in a subdomain will not. If you use a subdirectory structure for your website, any backlinks that web pages in your subdirectories pick up will boost these pages’ authority. This can in turn bump up the Domain Authority of your root domain over time.
On the other hand, you may be producing content on entirely different subjects and want search engines to rank such content separately. In this case, a subdomain structure might be more appropriate as search engines will treat your subdomain content as being part of a separate website.
However, be aware that if your subdomains target the same keywords as your main website (or vice versa), your website content might end up competing against each other on the SERPs! To prevent this from happening, optimize your subdomains for different keyword searches from each other. For example, consider translating your keywords if your subdomains contain different language versions of your main website’s pages. For more guidance, check out our video demonstrating how to do this in 4 easy steps:
Here’s the overall takeaway from the issue of whether subdirectories or subdomains are better for SEO. And, as Mueller echoes, you may not be surprised to learn that it all depends on what’s best for your business:
Subdirectories and subdomains are both helpful structures for organizing website content, and you should consider your business needs when deciding which to use for your website.
To recap, subdirectories are parked under your root domain and are generally used to create content hierarchies. They inherit your root domain’s Domain Authority, and their own authority can influence that of your main website (and vice versa). If you publish content with the aim of increasing organic traffic to your website, then using subdirectories for such content is the way to go.
In contrast, subdomains have their own domain name and are considered separate websites from your main domain. As a result, the authority of content you publish on one subdomain will have little impact on your website rankings for content on your main website or another subdomain. Among other reasons, website owners generally use subdomains to create website sections that are related to but separate from their main website, such as a subdomain for their support center or their blog.
Subdirectories and subdomains are also commonly used to carve out sections for different language versions of a website. Some webmasters prefer to use subdirectories for such multilingual pages, while others prefer to create new subdomains. If you’re in the same position and are wondering what the “right” way of doing things is, there isn’t one! It all depends on your SEO strategy and the approach that you think works best for your business.
Whether you decide to use a subdirectory or subdomain structure for the different language versions of your web pages, Weglot is perfect for helping you build a successful multilingual website and optimizing it for search engine traffic.
Weglot’s website translation solution uses a proprietary mix of machine learning languages to translate website content into over 110 languages with a high degree of accuracy. After that, it automatically creates separate language subdirectories or subdomains to house each set of translated content. No fiddling around in your website backend needed, as Weglot takes care of such technical setup for you!
Used by more than 60,000 websites, Weglot also includes other features that you’ll find useful for running a multilingual website. These include:
Weglot is compatible with all leading website and ecommerce platforms, including WordPress, Shopify, and Webflow. Sign up for an account here to try Weglot on your website for free.