Domain structure is the way a website’s addresses are laid out at the top level: which domain and top-level domain it uses, which subdomains it runs, and which sections live in folders under one host. It decides how search engines group your pages, which rules and settings apply where, and how easy the site is to move, translate or grow.
What are the parts of a domain? #
MDN’s guide to what a domain name is says the parts are separated by dots and read from right to left. Take shop.example.co.uk/kettles/:
| Part | In the example | What it is |
|---|---|---|
| Top-level domain | .uk | The far-right label; here a country code TLD |
| Second level | .co | The UK’s commercial space |
| Registered name | example | The part you rent from a registrar |
| Subdomain | shop | A label you create in your own DNS |
| Path | /kettles/ | A folder on that host |
MDN says each label can be 1 to 63 characters of letters, digits and hyphens, and a hyphen cannot start or end a label. The registered name plus its suffix, here example.co.uk, is often called the root domain. The full name of one host, such as shop.example.co.uk, is the hostname.
Why does it matter for search? #
Search engines and their tools treat each host as a separate place in many ways.
- Crawl rules. Google’s robots.txt rules say a file applies only to the host, protocol and port it sits on. So the rules you publish for the www host leave the bare domain and shop.example.com untouched. Each needs its own robots.txt.
- Reporting. In Search Console, a Domain property covers all subdomains and both http and https, and needs DNS verification. A URL-prefix property covers only addresses that start with that exact prefix, as Google’s property help explains.
- Duplicates. www and non-www, or http and https, are different addresses. If both answer, you have duplicate content until a canonical tag and redirects settle it. See www vs non-www and HTTPS vs HTTP.
- Grouping. Folders on one host keep everything together for links, sitemaps and settings. Subdomains split it.
Why does it matter for AI answers? #
The robots.txt standard works host by host, so for any AI crawler that follows it, a rule set on the main site will not reach a help centre on a subdomain. A tidy structure gives assistants one clear home for your facts. If prices sit on shop.example.com, guides on blog.example.com and contact details on example.com, a model has to join three hosts to describe one business. Keep key facts on the main host where you can, and link the parts clearly. Our AI crawlability entry covers the rest.
Subdomain or subfolder? #
This is the most common structure question. Google’s guide to multi-regional and multilingual sites compares the choices for country and language versions:
| Option | Example | Google’s pros | Google’s cons |
|---|---|---|---|
| Country domain | example.de | Clear geotargeting; server place does not matter; easy to separate | Can be costly; more infrastructure; strict rules; one country only |
| Subdomain on a generic TLD | de.example.com | Easy set-up; servers can sit in different places; easy to separate | People may not know if “de” means language or country |
| Subfolder on a generic TLD | example.com/de/ | Easy set-up; low upkeep on one host | One server place; harder to separate sites |
| URL parameter | example.com?loc=de | None given | Marked not recommended |
Outside international work, a common rule of thumb is: use folders for content that belongs to the main business, such as a blog or guides, and subdomains for things that run as separate systems, such as a help desk or app. Whichever you choose, link the parts to each other and keep them consistent. See international SEO and hreflang.
How does it fit with site structure? #
Domain structure is the outer layer. Inside one host, site architecture and information architecture decide how folders and pages link. Google’s URL structure guide asks for readable words rather than long ID numbers, hyphens between words, and one letter case, because Google treats addresses that differ in case as different. Our SEO-friendly URL and URL slug pages go further.
Common mistakes #
- Four versions of the home page. http, https, www and non-www all answer with a 200. Pick one and redirect the rest.
- A live staging copy. dev.example.com open to crawlers can be indexed. Lock down any staging site.
- Forgotten subdomains. Old campaign hosts with thin pages or broken certificates hurt trust. Each needs its own SSL certificate.
- Splitting for no reason. A blog on a subdomain needs its own robots.txt, sitemap and Search Console set-up, and links between the parts must be built on purpose.
- Changing structure without a plan. Moving from subdomain to folder changes every address. Follow a site move plan with 301 redirects.
- Using parameters for languages. Google marks this as not recommended.
A worked example #
A UK kitchenware wholesaler has grown in pieces:
- example.co.uk: main site
- shop.example.co.uk: online shop on a separate system
- blog.example.co.uk: guides
- example.co.uk/?lang=fr: a French version
Problems found: the blog had no robots.txt, the French pages had no hreflang, and both www and non-www answered. The fix: move the blog to example.co.uk/guides/ with 301 redirects, move French pages to example.co.uk/fr/ with hreflang, redirect www to non-www, and keep the shop on its subdomain with its own robots.txt and sitemap. One Domain property in Search Console now covers all of it.
How to check it #
- Split an address into scheme, host and path using our URL Parser, and check a name is valid with the Domain Name Validator.
- List the hosts you run with the DNS Lookup.
- Test that www, non-www, http and https end on one address with our Redirect Checker, and that each page points at itself with the Canonical Checker.
- Check each host’s crawl rules with the Robots.txt Checker and its sitemap with the Sitemap Checker.
- For language versions, run the Hreflang Checker; URSY Pro adds an hreflang audit (Pro).
- Check certificates on every subdomain with the SSL Checker.
- For a full picture, run a free SEO audit, or the site audit (Pro).
Questions #
Does Google rank subdomains differently from folders? #
Google’s international guide lists set-up and upkeep pros and cons, not a ranking rule. Pick the one you can run well.
Should I use .co.uk or .com? #
A UK-only business often uses .co.uk, which shows the country clearly. If you plan to serve many countries, a generic domain with country folders is simpler to run.
Do I need a robots.txt on every subdomain? #
Yes, if you want rules there. Google applies each file only to its own host.
Is www better than non-www? #
Neither is better. What matters is choosing one and redirecting the other.
Related words #
Sources #
- MDN: What is a domain name?, checked 25 November 2026
- Google Search Central: Managing multi-regional and multilingual sites, checked 25 November 2026
- Google Search Central: How Google interprets the robots.txt specification, checked 25 November 2026
- Search Console Help: Add a website property, checked 25 November 2026
- Google Search Central: URL structure best practices, checked 25 November 2026
Updated 25 November 2026 by URSY.
Cite this page: Domain structure. URSY. Updated 25 November 2026. https://ursy.com/wiki/domain-structure/ · Section links
Tools for this
- LiveSchema Markup CheckerRun the check →
- LiveSchema Markup GeneratorFAQ, product, local business, organisation, article, breadcrumb, event, recipe or videoRun the check →
- LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
- ProStructured data monitorSchema errors, site-wideIn URSY Pro →
- ProPublic proof pageYour own "Under the Hood" page on your domainIn URSY Pro →