{
    "title": "What is a subdomain?",
    "description": "A subdomain is a name inside a domain, like shop.example.com. Search engines and AI crawlers treat it as its own host. How to check yours.",
    "url": "https://ursy.com/wiki/subdomain/",
    "canonical": "https://ursy.com/wiki/subdomain/",
    "markdown": "https://ursy.com/wiki/subdomain/index.md",
    "json": "https://ursy.com/wiki/subdomain/index.json",
    "published": "2026-11-24T19:33:51+00:00",
    "updated": "2026-11-26T15:41:50+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY and link https://ursy.com/wiki/subdomain/",
    "headings": [
        {
            "level": 2,
            "text": "What is a subdomain?",
            "id": "what-is-a-subdomain",
            "url": "https://ursy.com/wiki/subdomain/#what-is-a-subdomain"
        },
        {
            "level": 2,
            "text": "What does a subdomain look like?",
            "id": "what-does-a-subdomain-look-like",
            "url": "https://ursy.com/wiki/subdomain/#what-does-a-subdomain-look-like"
        },
        {
            "level": 2,
            "text": "Is www a subdomain?",
            "id": "is-www-a-subdomain",
            "url": "https://ursy.com/wiki/subdomain/#is-www-a-subdomain"
        },
        {
            "level": 2,
            "text": "Subdomain or subfolder?",
            "id": "subdomain-or-subfolder",
            "url": "https://ursy.com/wiki/subdomain/#subdomain-or-subfolder"
        },
        {
            "level": 2,
            "text": "Why does a subdomain matter for search?",
            "id": "why-does-a-subdomain-matter-for-search",
            "url": "https://ursy.com/wiki/subdomain/#why-does-a-subdomain-matter-for-search"
        },
        {
            "level": 2,
            "text": "Why does a subdomain matter for AI answers?",
            "id": "why-does-a-subdomain-matter-for-ai-answers",
            "url": "https://ursy.com/wiki/subdomain/#why-does-a-subdomain-matter-for-ai-answers"
        },
        {
            "level": 2,
            "text": "How does Search Console see subdomains?",
            "id": "how-does-search-console-see-subdomains",
            "url": "https://ursy.com/wiki/subdomain/#how-does-search-console-see-subdomains"
        },
        {
            "level": 2,
            "text": "What about cookies and analytics?",
            "id": "what-about-cookies-and-analytics",
            "url": "https://ursy.com/wiki/subdomain/#what-about-cookies-and-analytics"
        },
        {
            "level": 2,
            "text": "Can a subdomain hurt your site?",
            "id": "can-a-subdomain-hurt-your-site",
            "url": "https://ursy.com/wiki/subdomain/#can-a-subdomain-hurt-your-site"
        },
        {
            "level": 2,
            "text": "What are the common mistakes?",
            "id": "what-are-the-common-mistakes",
            "url": "https://ursy.com/wiki/subdomain/#what-are-the-common-mistakes"
        },
        {
            "level": 2,
            "text": "A worked example",
            "id": "a-worked-example",
            "url": "https://ursy.com/wiki/subdomain/#a-worked-example"
        },
        {
            "level": 2,
            "text": "How to check it",
            "id": "how-to-check-it",
            "url": "https://ursy.com/wiki/subdomain/#how-to-check-it"
        },
        {
            "level": 2,
            "text": "What URSY.com counts",
            "id": "what-ursy-counts",
            "url": "https://ursy.com/wiki/subdomain/#what-ursy-counts"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/wiki/subdomain/#questions"
        },
        {
            "level": 3,
            "text": "Do subdomains rank worse than subfolders?",
            "id": "do-subdomains-rank-worse-than-subfolders",
            "url": "https://ursy.com/wiki/subdomain/#do-subdomains-rank-worse-than-subfolders"
        },
        {
            "level": 3,
            "text": "Do I pay for a subdomain?",
            "id": "do-i-pay-for-a-subdomain",
            "url": "https://ursy.com/wiki/subdomain/#do-i-pay-for-a-subdomain"
        },
        {
            "level": 3,
            "text": "Does a subdomain share the main site’s authority?",
            "id": "does-a-subdomain-share-the-main-sites-authority",
            "url": "https://ursy.com/wiki/subdomain/#does-a-subdomain-share-the-main-sites-authority"
        },
        {
            "level": 3,
            "text": "Do I need a new Search Console property for each subdomain?",
            "id": "do-i-need-a-new-search-console-property-for-each-subdomain",
            "url": "https://ursy.com/wiki/subdomain/#do-i-need-a-new-search-console-property-for-each-subdomain"
        },
        {
            "level": 3,
            "text": "Should my staging subdomain be blocked in robots.txt?",
            "id": "should-my-staging-subdomain-be-blocked-in-robots-txt",
            "url": "https://ursy.com/wiki/subdomain/#should-my-staging-subdomain-be-blocked-in-robots-txt"
        },
        {
            "level": 2,
            "text": "Related words",
            "id": "related-words",
            "url": "https://ursy.com/wiki/subdomain/#related-words"
        },
        {
            "level": 2,
            "text": "Sources",
            "id": "sources",
            "url": "https://ursy.com/wiki/subdomain/#sources"
        }
    ],
    "links": [
        {
            "text": "search engines",
            "url": "https://ursy.com/wiki/search-engine/",
            "internal": true
        },
        {
            "text": "cookies",
            "url": "https://ursy.com/wiki/cookie/",
            "internal": true
        },
        {
            "text": "&#8220;A domain is a subdomain of another domain if it is contained within that domain.&#8221;",
            "url": "https://www.rfc-editor.org/rfc/rfc1034",
            "internal": false
        },
        {
            "text": "domain name",
            "url": "https://ursy.com/wiki/domain-name/",
            "internal": true
        },
        {
            "text": "URL",
            "url": "https://ursy.com/wiki/url/",
            "internal": true
        },
        {
            "text": "DNS record",
            "url": "https://ursy.com/wiki/dns-records/",
            "internal": true
        },
        {
            "text": "DNS",
            "url": "https://ursy.com/wiki/dns/",
            "internal": true
        },
        {
            "text": "SSL certificate",
            "url": "https://ursy.com/wiki/ssl-certificate/",
            "internal": true
        },
        {
            "text": "redirect",
            "url": "https://ursy.com/wiki/redirect/",
            "internal": true
        },
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "multiple hostnames",
            "url": "https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls",
            "internal": false
        },
        {
            "text": "subdomains starting with www or m",
            "url": "https://developers.google.com/search/docs/appearance/site-names",
            "internal": false
        },
        {
            "text": "301 vs 302 redirect",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/",
            "internal": true
        },
        {
            "text": "canonical tag",
            "url": "https://ursy.com/wiki/canonical-tag/",
            "internal": true
        },
        {
            "text": "&#8220;Easy to set up&#8221;",
            "url": "https://developers.google.com/search/docs/specialty/international/managing-multi-regional-sites",
            "internal": false
        },
        {
            "text": "SEO starter guide",
            "url": "https://developers.google.com/search/docs/fundamentals/seo-starter-guide",
            "internal": false
        },
        {
            "text": "apply only to the host, protocol and port",
            "url": "https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt",
            "internal": false
        },
        {
            "text": "crawling infrastructure defines a site as a unique hostname",
            "url": "https://developers.google.com/search/docs/crawling-indexing/large-site-managing-crawl-budget",
            "internal": false
        },
        {
            "text": "crawl budgets",
            "url": "https://ursy.com/wiki/crawl-budget/",
            "internal": true
        },
        {
            "text": "robots.txt",
            "url": "https://ursy.com/wiki/robots-txt/",
            "internal": true
        },
        {
            "text": "XML sitemap",
            "url": "https://ursy.com/wiki/xml-sitemap/",
            "internal": true
        },
        {
            "text": "AI crawler",
            "url": "https://ursy.com/wiki/ai-crawler/",
            "internal": true
        },
        {
            "text": "GPTBot",
            "url": "https://ursy.com/wiki/gptbot/",
            "internal": true
        },
        {
            "text": "ClaudeBot",
            "url": "https://ursy.com/wiki/claudebot/",
            "internal": true
        },
        {
            "text": "at the root path /llms.txt",
            "url": "https://llmstxt.org/",
            "internal": false
        },
        {
            "text": "llms.txt",
            "url": "https://ursy.com/wiki/llms-txt/",
            "internal": true
        },
        {
            "text": "indexed and eligible to be shown with a snippet",
            "url": "https://developers.google.com/search/docs/appearance/ai-features",
            "internal": false
        },
        {
            "text": "AI Overviews",
            "url": "https://ursy.com/wiki/ai-overview/",
            "internal": true
        },
        {
            "text": "answer engine optimisation",
            "url": "https://ursy.com/wiki/answer-engine-optimisation/",
            "internal": true
        },
        {
            "text": "Google Search Console",
            "url": "https://ursy.com/wiki/google-search-console/",
            "internal": true
        },
        {
            "text": "includes all subdomains",
            "url": "https://support.google.com/webmasters/answer/34592",
            "internal": false
        },
        {
            "text": "omits the Domain attribute",
            "url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie",
            "internal": false
        },
        {
            "text": "store.company.com and news.company.com",
            "url": "https://developer.mozilla.org/en-US/docs/Web/Security/Defenses/Same-origin_policy",
            "internal": false
        },
        {
            "text": "session",
            "url": "https://ursy.com/wiki/session/",
            "internal": true
        },
        {
            "text": "referrer",
            "url": "https://ursy.com/wiki/referrer/",
            "internal": true
        },
        {
            "text": "first-party cookies",
            "url": "https://ursy.com/wiki/first-party-cookies/",
            "internal": true
        },
        {
            "text": "cookieless analytics",
            "url": "https://ursy.com/wiki/cookieless-analytics/",
            "internal": true
        },
        {
            "text": "cookie banners",
            "url": "https://ursy.com/wiki/cookie-banner/",
            "internal": true
        },
        {
            "text": "using existing or new subdomains",
            "url": "https://developers.google.com/search/docs/essentials/spam-policies",
            "internal": false
        },
        {
            "text": "site reputation abuse",
            "url": "https://ursy.com/wiki/site-reputation-abuse/",
            "internal": true
        },
        {
            "text": "subdomain takeover",
            "url": "https://developer.mozilla.org/en-US/docs/Web/Security/Attacks/Subdomain_takeover",
            "internal": false
        },
        {
            "text": "duplicate content",
            "url": "https://ursy.com/wiki/duplicate-content/",
            "internal": true
        },
        {
            "text": "noindex",
            "url": "https://ursy.com/wiki/noindex/",
            "internal": true
        },
        {
            "text": "must be hosted on the same site",
            "url": "https://developers.google.com/search/docs/crawling-indexing/sitemaps/large-sitemaps",
            "internal": false
        },
        {
            "text": "orphan page",
            "url": "https://ursy.com/wiki/orphan-page/",
            "internal": true
        },
        {
            "text": "moving a website without losing traffic",
            "url": "https://ursy.com/wiki/move-a-website-without-losing-traffic/",
            "internal": true
        },
        {
            "text": "Robots.txt Checker",
            "url": "https://ursy.com/robots-txt-checker/",
            "internal": true
        },
        {
            "text": "how to use the Robots.txt Checker",
            "url": "https://ursy.com/guides/how-to-use-robots-txt-checker/",
            "internal": true
        },
        {
            "text": "AI Bot Checker",
            "url": "https://ursy.com/ai-bot-checker/",
            "internal": true
        },
        {
            "text": "llms.txt Checker",
            "url": "https://ursy.com/llms-txt-checker/",
            "internal": true
        },
        {
            "text": "Redirect Checker",
            "url": "https://ursy.com/redirect-checker/",
            "internal": true
        },
        {
            "text": "redirect chain",
            "url": "https://ursy.com/wiki/redirect-chain/",
            "internal": true
        },
        {
            "text": "X-Robots-Tag",
            "url": "https://ursy.com/wiki/x-robots-tag/",
            "internal": true
        },
        {
            "text": "HTTP Header Checker",
            "url": "https://ursy.com/http-header-checker/",
            "internal": true
        },
        {
            "text": "Meta Tag Checker",
            "url": "https://ursy.com/meta-tag-checker/",
            "internal": true
        },
        {
            "text": "XML Sitemap Checker",
            "url": "https://ursy.com/sitemap-checker/",
            "internal": true
        },
        {
            "text": "Schema Markup Checker",
            "url": "https://ursy.com/schema-checker/",
            "internal": true
        },
        {
            "text": "AI Readiness Checker",
            "url": "https://ursy.com/ai-readiness-checker/",
            "internal": true
        },
        {
            "text": "Compare Two Websites",
            "url": "https://ursy.com/compare-websites/",
            "internal": true
        },
        {
            "text": "crawling",
            "url": "https://ursy.com/wiki/crawling/",
            "internal": true
        },
        {
            "text": "Verify an AI Bot",
            "url": "https://ursy.com/verify-ai-bot/",
            "internal": true
        },
        {
            "text": "Canonical Tag Checker",
            "url": "https://ursy.com/canonical-checker/",
            "internal": true
        },
        {
            "text": "SSL Certificate Checker",
            "url": "https://ursy.com/ssl-checker/",
            "internal": true
        },
        {
            "text": "Crawl budget by bot",
            "url": "https://ursy.com/pro/crawl-budget-by-bot/",
            "internal": true
        },
        {
            "text": "Bot verification log",
            "url": "https://ursy.com/pro/bot-verification-log/",
            "internal": true
        },
        {
            "text": "Index coverage monitor",
            "url": "https://ursy.com/pro/index-coverage-monitor/",
            "internal": true
        },
        {
            "text": "Bot",
            "url": "https://ursy.com/wiki/bot-web-robot/",
            "internal": true
        },
        {
            "text": "methodology",
            "url": "https://ursy.com/methodology/",
            "internal": true
        },
        {
            "text": "internal linking",
            "url": "https://ursy.com/wiki/internal-linking/",
            "internal": true
        },
        {
            "text": "backlinks",
            "url": "https://ursy.com/wiki/backlinks/",
            "internal": true
        },
        {
            "text": "noindex, nofollow or robots.txt",
            "url": "https://ursy.com/wiki/noindex-nofollow-or-robots-txt/",
            "internal": true
        },
        {
            "text": "International SEO",
            "url": "https://ursy.com/wiki/international-seo/",
            "internal": true
        },
        {
            "text": "Hreflang",
            "url": "https://ursy.com/wiki/hreflang/",
            "internal": true
        },
        {
            "text": "Technical SEO",
            "url": "https://ursy.com/wiki/technical-seo/",
            "internal": true
        }
    ],
    "words": 1819,
    "text": "A subdomain is a name that sits inside a larger domain name, such as shop.example.com or help.example.com inside example.com. You create it in DNS, and it can point to a different server, app or part of the business. Browsers, search engines and AI crawlers usually treat each subdomain as its own host, with its own robots.txt, its own cookies and its own crawl budget. What is a subdomain? The formal rule is in RFC 1034, the standard that defines DNS: “A domain is a subdomain of another domain if it is contained within that domain.” So shop.example.com is a subdomain of example.com. Each part between the dots is a label. A label can be up to 63 octets long, and the whole name is limited to 255 octets. The subdomain is part of the domain name, which is part of the URL. What does a subdomain look like? Part In https://shop.example.co.uk/shoes/ What it does Protocol https How the browser talks to the server Subdomain label shop Picks one host inside the domain Registered domain example.co.uk The name you rent from a registry Path /shoes/ A page on that host The subdomain is set by a DNS record, usually an A record or a CNAME. See DNS for how names turn into addresses. The host also needs an SSL certificate that covers the new name, or browsers warn visitors. Is www a subdomain? Yes. www.example.com is a subdomain of example.com. Most sites answer on both, so pick one and send the other to it with a 301 redirect. Google’s duplicate URL guide lists multiple hostnames as a common cause of duplicate pages. For site names, Google says subdomains starting with www or m are generally considered equivalent. See 301 vs 302 redirect and canonical tag. Subdomain or subfolder? A subfolder is a path on the same host, such as example.com/shop/. Google’s guide to sites for many countries compares the two. It lists subdomains as “Easy to set up”, allowing different server locations and easy separation of sites. It lists subfolders as low maintenance on the same host, with separation harder. Google does not say one ranks better. Its SEO starter guide says: “From a business point of view, do whatever makes sense for your business.” The real difference is the work each one creates. Job shop.example.com example.com/shop/ robots.txt Needs its own file Shares the main file Crawl budget Separate Shared Site name in Google Can have its own Uses the domain’s Different server or app Easy Harder Internal links Cross-host links to set up Normal internal links Why does a subdomain matter for search? Search engines draw the line at the host. Google’s robots.txt rules apply only to the host, protocol and port where the file sits. A file at www.example.com/robots.txt is only valid for that subdomain. Google’s crawl budget guide says its crawling infrastructure defines a site as a unique hostname, so two subdomains have separate crawl budgets. Each subdomain also needs its own robots.txt and a sensible XML sitemap. Why does a subdomain matter for AI answers? An AI crawler such as GPTBot or ClaudeBot meets the same host line. If you allow AI crawlers on www but forget help.example.com, your most useful answers may never be read. The llms.txt proposal puts the file at the root path /llms.txt of a website, so a help centre on its own host needs its own llms.txt. Google also says a page must be indexed and eligible to be shown with a snippet to be a supporting link in AI Overviews or AI Mode. A blocked subdomain has no route into AI Overviews. For answer engine optimisation, check every host that holds content you want quoted. How does Search Console see subdomains? Google Search Console has two kinds of property. A Domain property includes all subdomains (m, www and so on) and both http and https, and you verify it with a DNS record. A URL-prefix property only covers addresses that start with that exact prefix, so https://m.example.com/ is not in https://example.com/. If you track only the www prefix, a help centre or shop on another host is missing from your reports. What about cookies and analytics? Cookies follow the host too. MDN explains that if a cookie omits the Domain attribute, it is returned only to the host that sent it. If Domain is set, subdomains are always included. Browsers also treat a different host as a different origin: store.company.com and news.company.com are not the same origin. So a visit that starts on www and ends on shop can look like two visits: the session splits, and the shop may show your own site as the referrer. Set up your analytics so every host reports into one place. See first-party cookies, cookieless analytics and cookie banners, which you need on every host that sets cookies. Can a subdomain hurt your site? Yes, in three ways: Spam on your name. Google’s spam policies name using existing or new subdomains to keep breaking its rules as policy circumvention. Renting a subdomain to someone else’s low-value pages can fall under site reputation abuse. Takeover. MDN describes a subdomain takeover: a CNAME still points to a service you closed, and an attacker claims it and serves their own content on your name. Leaks. A staging or test subdomain left open gets crawled and indexed, and creates duplicate content. What are the common mistakes? One robots.txt on www, none on the other hosts. Both example.com and www.example.com answering with a 200, with no redirect. A staging host with no noindex and no login. Old DNS records left pointing at closed services. A sitemap on www that lists URLs from other hosts without cross-site submission. Google says sitemaps in an index must be hosted on the same site unless cross-site submission is set up. No links between hosts, so the shop sits like an orphan page next to the main site. Moving a blog from a subdomain into a folder without 301 redirects, so its links are lost. See moving a website without losing traffic. A worked example A company runs four hosts. Here is what a check finds: Host robots.txt Sitemap Indexable Verdict www.example.com Yes, allows search and AI crawlers Yes Yes Healthy example.com Copy of www No Yes, 200 not 301 Redirect to www help.example.com None None Yes Add robots.txt, sitemap and llms.txt staging.example.com None None Yes Add login or noindex now The help centre holds the answers people ask AI about, yet nothing guides crawlers to it. The staging host is the bigger risk: it can be indexed as a copy of the live site. How to check it List every host. Start with your DNS records and your SSL certificate names. Remove any record that points at a closed service. Check robots.txt on each host. Run the Robots.txt Checker once per subdomain, not once per company. Our guide how to use the Robots.txt Checker explains the result. Check which AI crawlers each host lets in. The AI Bot Checker reads the rules for GPTBot, ClaudeBot and others. Then run the llms.txt Checker on each host that should be quoted. Check www and non-www. The Redirect Checker shows each hop. One 301 is right; a redirect chain is not. Check staging is closed. Read the status and X-Robots-Tag in the HTTP Header Checker. Then check the page tags with the Meta Tag Checker for noindex and the canonical tag. Check each sitemap. The XML Sitemap Checker shows the URLs and their hosts, so you can spot a list that mixes hosts. Check the subdomain home page. The Schema Markup Checker shows the WebSite markup Google reads for site names. The AI Readiness Checker scores how ready the host is for AI. Compare two hosts. Compare Two Websites puts www and help side by side, check by check. Check who is really crawling. Verify an AI Bot tests one address against the published lists. The Canonical Tag Checker and SSL Certificate Checker are live. Watch every host over time. Crawl budget by bot, Bot verification log and Index coverage monitor show where crawlers go and what gets indexed (in URSY Pro, opening in stages). What URSY.com counts We count every request from the edge log and the origin, including pages the cache answers, and sort each one into five visitor types. Bot names are checked against the IP lists the companies publish, so a bot is marked real, fake or unknown. We keep the path, never the query string. The rules are on our methodology page. Questions Do subdomains rank worse than subfolders? Google publishes no rule that says so. A subdomain is more work: its own robots.txt, sitemap, crawl budget and links. If you will not do that work, a subfolder is simpler. Do I pay for a subdomain? No. Once you own the domain, a subdomain is just a new DNS record. You can add as many as your DNS provider allows. Does a subdomain share the main site’s authority? It shares the name, not the pages. Links from the main site to the subdomain help people and crawlers find it. See internal linking and backlinks. Do I need a new Search Console property for each subdomain? Not if you use a Domain property. It covers every subdomain and both protocols. A URL-prefix property covers one host only. Should my staging subdomain be blocked in robots.txt? A login is safer. robots.txt stops crawling, not indexing, and Google can still index a blocked URL it finds through links. See noindex, nofollow or robots.txt. Related words Domain name DNS Robots.txt Crawl budget International SEO Hreflang Move a website without losing traffic Technical SEO Site reputation abuse Sources RFC 1034: Domain names, concepts and facilities, checked 24 November 2026 Google Search Central: How Google interprets the robots.txt specification, checked 24 November 2026 Google Search Central: Crawl budget management for large sites, checked 24 November 2026 Google Search Central: Site names in Google Search, checked 24 November 2026 Google Search Central: Managing multi-regional and multilingual sites, checked 24 November 2026 Google Search Central: How to specify a canonical URL, checked 24 November 2026 Google Search Central: Manage your sitemaps with sitemap index files, checked 24 November 2026 Google Search Central: AI features and your website, checked 24 November 2026 Google Search Central: Spam policies for Google web search, checked 24 November 2026 Search Console Help: Add a website property, checked 24 November 2026 MDN: Set-Cookie header, checked 24 November 2026 MDN: Same-origin policy, checked 24 November 2026 MDN: Subdomain takeovers, checked 24 November 2026 llmstxt.org: The /llms.txt file, checked 24 November 2026 Google Search Central: SEO starter guide, checked 24 November 2026 Updated 24 November 2026 by URSY.com.",
    "source": "https://ursy.com/wiki/subdomain/"
}