Skip to content

Find a lower .io price anywhere and we’ll beat it, including on 1, 2 and 3-year registrations.

New: manage your hosting from Claude & ChatGPTNew: Spark, build a website by chatting
Globalhostia
Domains

Subdomain vs Subfolder: Where to Put a New Store or Language

Subdomain vs Subfolder: Where to Put a New Store or Language
In this article8 sections
  1. Subdomain vs subfolder: what actually differs
  2. Subdomain SEO: what the documentation says and doesn't
  3. A decision framework for adding a shop
  4. Website structure for a multilingual site
  5. Worked example: three choices for one small business
  6. Subdomain hosting setup and subfolder setup, step by step
  7. Mistakes to avoid, and what changing your mind costs
  8. Frequently asked questions

Subdomain vs subfolder comes down to how separate the new section really is. If the shop or extra language runs on the same platform as your main site, a subfolder such as example.com/shop/ is the simpler choice. If it runs on different software or servers, a subdomain such as shop.example.com is a reasonable one.

Subdomain vs subfolder: what actually differs

A subfolder lives inside your main hostname: example.com/shop/ or example.com/fr/. A subdomain adds a label in front of the hostname: shop.example.com or fr.example.com. To a visitor the difference is small. To your DNS, hosting and certificates it can be large.

Subfolder Subdomain
Example example.com/shop/ shop.example.com
DNS change None, it uses the main hostname A new record is needed (A or CNAME)
Where it can run The same site, or proxied to another system Any server or platform you can point the record at
Certificate Covered by the main hostname's certificate The new name must be covered by a multi-name or wildcard certificate, or get its own
Maintenance One host, one set of settings Can be a separate site on a separate host

A subfolder keeps everything in one place. A subdomain gives you freedom to build the new section differently. Pick the one that matches how the section will be built and run, not just how you want the URL to look.

Subdomain SEO: what the documentation says and doesn't

Arguments about subdomain SEO are often stated more confidently than the evidence allows. Google's guidance on managing multi-regional and multilingual sites lists both structures as workable and describes the trade-offs in setup terms, not ranking terms.

For subdomains on a generic TLD, it lists these advantages: easy to set up, different server locations are possible, and the versions are easy to separate. The disadvantage it names is that users may not recognise the targeting from the URL alone, because a label like de could mean a language or a country.

For subdirectories on a generic TLD, it lists easy setup and low maintenance because it's the same host. The disadvantages are the same recognition problem, a single server location, and sites that are harder to separate.

That's the honest picture. We won't tell you a subfolder always outranks a subdomain, because that documentation doesn't say so. What it does support is a decision based on effort, infrastructure and clarity.

A decision framework for adding a shop

Work through these questions in order and stop at the first clear answer.

  1. Does the shop run on a different platform or server from your main site? If it's a hosted shop platform or a separate application, a subdomain is the natural fit. You add one DNS record and the main site stays untouched.
  2. Will a different team or supplier build and update it? A subdomain keeps their work apart from yours, so changes on one side are less likely to affect the other.
  3. Is the shop an extension of the same brand experience, on the same CMS? Then a subfolder keeps one site, one host and one set of settings.
  4. Do you need a different server location or very different resources? Google's comparison notes that subdomains allow different server locations. A subfolder is tied to one host unless you add proxying.
  5. Can you realistically maintain two things? Two hostnames mean two sets of certificate checks, redirects and monitoring. A small team with little time should lean towards one site.
Situation Lean towards
Shop on separate software or a separate host Subdomain
Shop as a plugin or module of your existing CMS Subfolder
Different team or supplier owns the shop Subdomain
One small team, one brand, minimal upkeep Subfolder
Shop needs servers in a different location Subdomain

If you run WordPress and want the shop inside the same install, a WordPress hosting plan lets you keep everything under one hostname.

Website structure for a multilingual site

For a second language the question shifts slightly. Google recommends a separate URL for each language version rather than switching language with cookies or browser settings. Whether that URL is /fr/ or fr.example.com is up to you. The same page lists country-code domains as a third option: clearer geotargeting, but expensive, sometimes strict registry requirements, and limited to a single country.

Whatever you choose, these points come from Google's guidance on localized versions of your pages and the multilingual page above:

  • Use hreflang annotations in HTML, HTTP headers or a sitemap. Pick one method, not all three.
  • Each language version must list itself and all the other versions, and alternate URLs must be fully qualified, including https.
  • If two pages don't point to each other, the tags are ignored.
  • Add an x-default entry for visitors whose language isn't covered, such as a language selector page.
  • The subdomain label, such as de or en-gb, isn't used by Google to work out the target audience. You map it explicitly with hreflang.
  • Google works out a page's language from its visible content, not from the URL or the lang attribute. Translate the body, not just the menu and footer.
  • Don't redirect visitors automatically based on a guessed language. Link between versions on every page and let people choose.

For a small business on a single CMS, language subfolders are usually the lower-maintenance route because everything stays on one host. A subdomain makes more sense if a language version is run by a separate team or platform.

Worked example: three choices for one small business

Take a hypothetical coffee roaster with a brochure site at example.com, built on WordPress. This isn't a real case, just an illustration of the framework.

Scenario A: a shop on a hosted shop platform. The platform wants its own hostname and handles checkout, stock and orders. A subdomain, shop.example.com, is the reasonable choice. The roaster adds the DNS record the platform asks for, confirms the certificate covers the new hostname and links to the shop from the main menu. The brochure site doesn't change.

Scenario B: a shop built into the existing WordPress site. Same CMS, same theme, same team. A subfolder, example.com/shop/, means one install and one place to manage updates, backups and redirects. No new DNS record, no extra certificate.

Scenario C: French and German versions of the brochure pages. The content is fully translated and managed in the same CMS. Language subfolders, /fr/ and /de/, work well, with hreflang on every version (each listing itself and the others) and an x-default page for everyone else.

The same business ends up with a subdomain in one case and subfolders in the others. What decided it was where the software runs and who maintains it, not a general belief about which is better. If the shop will take payments, sort out the checkout side early; our payment gateway setup service covers that before you commit to a platform.

Subdomain hosting setup and subfolder setup, step by step

Setting up a subdomain

  1. Choose a short, clear name such as shop or store. Avoid anything that could be mistaken for a language code if you plan translations too.
  2. Create the record where your DNS is managed. If the shop is on your own hosting, create the subdomain in your control panel and note its document root. If it's on an external platform, add the A or CNAME record that platform specifies. Our guide to pointing a domain with nameservers or an A record explains what each record does.
  3. Check certificate coverage. A certificate issued only for example.com doesn't cover shop.example.com. Confirm the new name is included, or use a multi-name or wildcard option. Our SSL certificates page lists the types.
  4. Test the subdomain over https before you link to it, including checkout or login pages.
  5. Link to it from the main navigation and footer so visitors and crawlers can find it.
  6. Add the new hostname to your analytics and monitoring.

Setting up a subfolder

  1. Create the section inside your existing CMS: a shop plugin, a language plugin, or a set of pages under a parent page.
  2. Keep URL paths short, and use the language of the content where that makes sense.
  3. Add hreflang annotations if it's a language version, and update your sitemap.
  4. Check that internal links, canonical tags and redirects all use the same hostname.

Mistakes to avoid, and what changing your mind costs

Moving from a subdomain to a subfolder, or the reverse, is possible but takes work. Every old URL needs a permanent redirect to its new equivalent, and you'll need to update canonical tags, sitemaps, internal links and any external profiles that point at the old addresses. It's easier to decide properly now.

A few pitfalls come up repeatedly:

  • A subdomain nobody links to. If the shop isn't reachable from the main menu, visitors and search engines have little reason to find it.
  • Half-translated pages. Google says it detects language from visible content, and notes that translating only the boilerplate can create a poor experience in search results.
  • Redirecting by browser language. Google advises against it, since it can stop people and crawlers reaching some versions.
  • Forgetting the certificate. A browser warning on a new subdomain at launch is entirely avoidable.
  • Hreflang that points one way. Annotations that aren't reciprocal are ignored.

If you're restructuring because the site is moving to a new host, our free website migration service can handle the move, so you can settle the URL structure separately.

Last updated: 26 November 2026.

Ready to give your new shop or language section a home? Take a look at our web hosting plans to see what fits.

Frequently asked questions

Is a subdomain or a subfolder better for SEO?

Neither is better in every case. Google's documentation treats both as valid and frames the differences around setup, server location and maintenance. Choose based on how the section is built and who looks after it, then implement it cleanly.

Should I put my online shop on a subdomain?

If the shop runs on separate software or a separate host, a subdomain such as shop.example.com is a sensible choice. If it's a module of your existing CMS, a subfolder keeps things in one place. Either way, make sure the certificate covers the hostname you use.

Do I need hreflang if I add a second language?

Google recommends labelling language versions so it knows the pages are variants of one another. Each version should list itself and every other version, using fully qualified URLs. Use one method: HTML, HTTP headers or a sitemap.

Does a subdomain need its own SSL certificate?

The new hostname must be covered by a certificate. That can be one listing several names, a wildcard certificate or a separate one. Check coverage in your browser before you launch.

Can I switch from a subdomain to a subfolder later?

Yes, but it means permanent redirects from every old URL to its new address, plus updates to canonical tags, sitemaps and internal links. Planning the structure at the start avoids that clean-up.

Plans that fit

Hand-picked for this article. Every plan comes with engineers on call around the clock.

Hostia Lite

Fast NVMe Storage and Real 24/7 Technical Support.

A$45.32/ year

≈ A$3.78/mo, billed yearly

Renews at A$45.32 / year · +VAT 5% where applicable

  • 2 GB of Space
  • 50 GB Bandwidth
  • 10 Email IDs
  • Not included: 1 Website
  • Not included: 10 Databases
Recommended

Hostia Ultra

Fast NVMe Storage and Real 24/7 Technical Support.

A$60.44/ year

≈ A$5.04/mo, billed yearly

Renews at A$60.44 / year · +VAT 5% where applicable

  • DISK
  • 5GB SSD
  • Bandwidth
  • 100GB Bandwidth
  • Email Accounts
  • unlimited Email
  • Domains
  • 5 Websites

Hostia Infinity

Fast SSD Storage and Real 24/7 Technical Support.

A$75.55/ year

≈ A$6.30/mo, billed yearly

Renews at A$75.55 / year · +VAT 5% where applicable

  • DISK
  • Unlimited SSD
  • Bandwidth
  • Unlimited Bandwidth
  • Email Accounts
  • Unlimited Email
  • Domains
  • 10 Websites
Prices shown live from our billing system, in AUD.

What you get with GlobalHostia

  • 24/7 supportEngineers on call by phone, email, WhatsApp and ticket, at any hour.
  • Automatic setupYour service is set up automatically as soon as payment is confirmed.
  • Global datacentersHost close to your visitors in datacenters on several continents.