Multilingual websites: structure, hreflang and SEO done right
How to plan and build a website in several languages, choose a URL structure, set up hreflang correctly and avoid the common mistakes that hurt international SEO.
How subdomains and subdirectories differ technically and for SEO, and which to use for blogs, shops, help centres, apps and international sites.
A subdirectory (example.com/blog) keeps content on your main domain, while a subdomain (blog.example.com) is technically a separate site. Search engines can handle both, but subdirectories make it simpler to build authority in one place and are usually recommended for blogs, guides and language versions. Subdomains make sense for separate applications, help centres on different platforms or distinct audiences.
When adding a blog, shop, help centre or language version, you'll need to decide where it lives: in a subdirectory like example.com/blog or a subdomain like blog.example.com. The choice affects SEO, technical setup and maintenance.
Subdirectory (subfolder): part of the main site's path, such as example.com/blog, example.com/shop or example.com/fr.
Subdomain: a prefix to the domain, such as blog.example.com or shop.example.com. Technically, subdomains can point to completely different servers, platforms or hosting. Our guide to DNS records explains how subdomains are set up.
Google has said it can handle both and that site structure choices are mostly about what's easier for you to manage. In practice, many SEO practitioners have found that content in subdirectories benefits more directly from the main domain's existing reputation, while subdomains can behave more like separate sites that need to build their own signals. Results vary, and quality content and good internal linking matter far more than the structure itself.
Subdirectories:
Subdomains:
| Scenario | Typical choice |
|---|---|
| Company blog | Subdirectory |
| Language versions | Subdirectory |
| Logged-in web app | Subdomain |
| Help centre on a third-party platform | Subdomain, or subdirectory via proxy |
| Online shop on a separate platform | Subdomain, or main domain if platform allows |
| Campaign microsite | Subdirectory where possible |
Moving content from a subdomain to a subdirectory, or the other way, is a site migration. You'll need to map URLs, set up 301 redirects, update internal links, update sitemaps and monitor Search Console. Done carefully, migrations preserve rankings.
Whichever you choose, link between sections naturally: blog posts to service pages, help articles to product pages, and main navigation to key sections.
Use subdirectories for content that supports your main site's visibility, such as blogs, guides and languages. Use subdomains for separate applications and platforms where technical separation helps.
A software company runs its marketing site at example.com, its blog on a separate platform at blog.example.com and its app at app.example.com. After moving the blog to example.com/blog with a reverse proxy, internal links between articles and product pages become simpler, and all content builds authority on one domain. The app stays on its subdomain because it's a separate application with its own security needs.
When content spans subdomains, configure analytics to track users across them, or you'll see visits split into separate sessions. With subdirectories, a single analytics setup usually covers everything.
Subdomains can isolate cookies and scripts, which is useful when hosting user-generated content or third-party tools. Avoid putting untrusted content on your main domain's paths where it could interact with your main site's cookies.
Our web development team plans site structures and sets up routing for subdirectories across platforms. Our CMS development team integrates blogs and help centres, and our maintenance plans manage DNS and redirects safely.
Many practitioners find subdirectories simpler for building authority, though Google says it can handle both. Content quality matters most.
Usually a subdirectory like /blog is recommended, so articles support your main site directly.
Yes, with a reverse proxy or routing setup that serves the blog under your main domain's path.
This guide is general information, not legal, tax or financial advice, and details such as prices, features and rules can change. Product and company names mentioned are trademarks of their respective owners and are used only to identify those products; UK Technology Hub is not affiliated with or endorsed by them.
Tell us about your project and get a free, fixed quote.
Get a free quoteHow to plan and build a website in several languages, choose a URL structure, set up hreflang correctly and avoid the common mistakes that hurt international SEO.
What DNS is, what each common record type does, how changes propagate and how to update DNS safely when moving websites or email.
The real differences between native, hybrid and cross-platform mobile apps in performance, cost, user experience and long-term maintenance.