utillyUtilly home
How it worksPricingFor WebflowFor WordPressFor AI-built apps
Log in
How it worksPricingFor WebflowFor WordPressFor AI-built appsLog in

Sitemaps and robots.txt behind a reverse proxy.

Once a platform runs at yourdomain.com/blog, its robots.txt stops counting. Google reads one robots.txt per host, at the root, and that file belongs to your main site. The platform's sitemap still works, but only if the root robots.txt, a root sitemap index, or Search Console points at it. This guide maps which file lives where, what WordPress, Ghost, Mintlify and HubSpot do on a subpath, and what five live sites do about it.

Published October 23, 2026. Google documentation, platform docs and source code, and the live sites below checked the same day.

route tableall routes live
yourdomain.comutillyreverse proxy/Main site/blogWordPress/docsMintlify

Which file does Google actually use?

The root robots.txt, and any sitemap it names. A proxy adds files at paths Google treats differently, and only the first row below is read without help. Rules from Google's robots.txt specification and its guide to building a sitemap.

yourdomain.com/robots.txt

Whatever answers / on your domain, usually the main site

Read

The only robots.txt Google requests for the host. Its rules and Sitemap lines cover every path, /blog included.

yourdomain.com/blog/robots.txt

The blog platform, through the proxy

Never requested

Google’s spec calls a robots.txt in a folder “not a valid robots.txt file.” Its Disallow rules and Sitemap line do nothing for Google.

yourdomain.com/blog/sitemap.xml

The blog platform, through the proxy

Valid, if announced

It may list URLs under /blog/. Google finds it only if the root robots.txt, a root sitemap index, or Search Console points at it.

<platform-host>/sitemap.xml

The platform, on its own hostname

Not for your URLs

A sitemap covers its own directory unless it is cross-submitted. Copies on the platform’s hostname do not count for yourdomain.com on their own.

Why doesn't /blog/robots.txt count?

Because Google never asks for it. The specification says the file must sit in the top-level directory of a site, and it uses a folder as its own counterexample: https://example.com/folder/robots.txt is “not a valid robots.txt file,” since crawlers don't check subdirectories. The rules in a root file apply to the host, protocol and port it is served from, which means every path on your domain, including the ones your proxy hands to another platform.

That cuts both ways. Rules the platform set for itself stop applying: a Disallow: /tag/ that worked on blog.yourdomain.com matches nothing once those pages live at /blog/tag/. Rules the main site set start applying: a broad pattern such as Disallow: /*? now also blocks the blog's query-string URLs. Write every rule for the proxied section with its prefix, and read the existing root rules for patterns that now reach it.

One more trap for anyone who keeps separate groups for Googlebot and for all other crawlers: Google follows only the most specific group that matches it, and does not combine a Googlebot group with the * group. Add the prefixed rules to each group you want them in.

What do the platforms do on a subpath?

None of the four puts its sitemap into your root files for you. Ghost and Mintlify still write a robots.txt, at a path Google ignores. WordPress writes none, and HubSpot's proxy overview does not cover it. Each card links the source we read today.

WordPress (self-hosted)

robots.txt
None. Core registers its virtual robots.txt and sitemap.xml rewrites “only if installed at the root,” so a site whose address ends in /blog gets neither.
Sitemap
Core builds /blog/wp-sitemap.xml from home_url(). Core announces it only inside the robots.txt that is never generated. SEO plugins can replace it with their own files.
What you add at the root
Sitemap line for /blog/wp-sitemap.xml, or the plugin’s index, in the root robots.txt.

Source: class-wp-rewrite.php

Ghost

robots.txt
Moves to /blog/robots.txt. Ghost mounts the whole app under the subdirectory, so its default file (a Sitemap line and Disallow rules for /ghost/, /email/, /r/ and more) lands where Google never looks.
Sitemap
/blog/sitemap.xml, an index of per-type sitemaps such as posts, tags and authors.
What you add at the root
Sitemap line for /blog/sitemap.xml, plus Ghost’s Disallow rules rewritten with the /blog prefix if you want to keep them.

Source: Ghost default robots.txt

Mintlify

robots.txt
Generates /docs/robots.txt with a Sitemap line for /docs/sitemap.xml. Mintlify reserves /robots.txt and /sitemap.xml, so neither can be a base path.
Sitemap
/docs/sitemap.xml, listing your public /docs URLs.
What you add at the root
Sitemap line for /docs/sitemap.xml in the root robots.txt, or an entry in a root sitemap index.

Source: Mintlify custom domain docs

HubSpot

robots.txt
Not covered in HubSpot’s reverse proxy overview.
Sitemap
HubSpot says that if you proxy only a subpath, your main sitemap.xml “won’t automatically include HubSpot pages.”
What you add at the root
HubSpot’s advice: add the pages manually, or configure your sitemap to pull from multiple sources.

Source: HubSpot reverse proxy overview

How do live subfolder sites handle it?

Four of the five we checked connect the subfolder sitemap at the root. We fetched the root robots.txt, the root sitemap, and the subfolder's own files on each site on October 23, 2026. We name the sites that have it right and leave the fifth unnamed.

siteplatformwhat the root files docovered
www.atlassian.com/blogWordPressRoot robots.txt carries a “Sitemap for Blog” line for /blog/post-sitemap.xml and Disallow rules prefixed with /blog/.Yes
buffer.com/resourcesGhostRoot robots.txt lists /resources/sitemap.xml next to its language sitemaps.Yes
resend.com/docsMintlifyRoot sitemap is an index whose entries include /docs/sitemap.xml.Yes
www.mintlify.com/docsMintlifyRoot sitemap lists all 1,064 docs URLs directly.Yes
A developer-tools docs siteMintlifyIts 360-URL docs sitemap is named only in /docs/robots.txt. The root robots.txt lists four other files, and the root sitemap has 28 URLs, none under /docs.No

The fifth site may well have submitted its docs sitemap in Search Console, which nobody outside the company can see. Google's sitemap guide allows that route. The public signals still leave the 360 docs URLs to be found through links alone, and engines that rely on the robots.txt Sitemap field get no pointer.

The four covered sites use three different methods, and all three are valid. Atlassian also shows the other half of the job: its root file carries rules such as Disallow: /blog/author/*, which is the blog's own housekeeping rewritten with the prefix.

How do you fix it at the root?

Add one Sitemap line per proxied section to the root robots.txt, and move any platform rules you want to keep into the same file with their prefix. Google accepts any number of Sitemap lines, and the URL may point anywhere as long as it is fully qualified. This example combines a Ghost blog at /blog with Mintlify docs at /docs:

# https://yourdomain.com/robots.txt
User-agent: *
Disallow: /blog/ghost/
Disallow: /blog/email/
Disallow: /blog/r/

Sitemap: https://yourdomain.com/sitemap.xml
Sitemap: https://yourdomain.com/blog/sitemap.xml
Sitemap: https://yourdomain.com/docs/sitemap.xml

The alternative is a sitemap index at the root, the method Resend uses. Google's sitemap index rules only allow an index to reference sitemaps in its own directory or deeper, so this works from the root and fails in reverse: an index at /blog/sitemap.xml cannot pull in the main site's sitemaps.

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap><loc>https://yourdomain.com/sitemap-pages.xml</loc></sitemap>
  <sitemap><loc>https://yourdomain.com/blog/sitemap.xml</loc></sitemap>
</sitemapindex>

Keep the root files with whoever serves /. If your main site generates robots.txt at build time, the extra lines belong in that source, not in a hand edit the next deploy overwrites.

What happens when the proxy breaks robots.txt?

Crawling of the whole host changes, not only the proxied section. The status code your domain returns for /robots.txt decides what Google does, and Google generally caches the file for up to 24 hours, so a fix can take a day to show.

robots.txt returns 5xx or times out

Google’s spec: “For the first 12 hours, Google stops crawling the site” while it retries, then uses the last good copy for up to 30 days.

The whole host pauses, every subfolder included. A route that sends /robots.txt to an origin that is down takes the main site with it.

robots.txt returns 404 or another 4xx

Google treats every 4xx except 429 as if no robots.txt existed: no crawl restrictions.

A route change that sends /robots.txt to an origin without one erases every Disallow on the domain, and no page shows an error.

robots.txt returns HTML

Google parses what it gets, keeps valid lines and ignores the rest.

An app shell or a styled 404 page served with status 200 usually contains no valid lines, which leaves no rules at all.

robots.txt redirects

Google follows at least five hops, then treats the file as a 404.

Chains build up when the proxy adds a trailing slash or a www redirect in front of an origin that adds its own.

What should the proxied sitemap contain?

Absolute URLs on your public domain, and only the ones you want in search. Google says it will try to crawl sitemap URLs “exactly as listed,” so a platform that writes its own hostname or your old blog. subdomain into the file sends Google straight to the address you are moving away from. The Mintlify origins we checked list the public /docs URLs even on their own hostnames, which is the behavior to look for.

The sitemap and the canonical tag should name the same URL. Google's canonicalization methods rank sitemap inclusion as a weak signal and say not to name one URL in a sitemap and a different one in rel="canonical". Google also ignores priority and changefreq, and uses lastmod only when it is consistently and verifiably accurate.

Check it in five commands

  1. 01

    The root file answers 200 with plain text.

    curl -sI https://yourdomain.com/robots.txt
  2. 02

    Every proxied section has a Sitemap line.

    curl -s https://yourdomain.com/robots.txt | grep -i sitemap
  3. 03

    Each listed sitemap answers 200 on the public domain.

    curl -sI https://yourdomain.com/blog/sitemap.xml
  4. 04

    The URLs inside use the public host and the /blog prefix.

    curl -s https://yourdomain.com/blog/sitemap.xml | grep -o '<loc>[^<]*' | head
  5. 05

    The blog’s own housekeeping paths are covered by the root rules.

    curl -s https://yourdomain.com/robots.txt | grep -i "disallow: /blog"

Then submit the sitemaps in Search Console's Sitemaps report, which shows when Google last read each one and any processing errors. Google calls a submitted sitemap a hint, not a guarantee of crawling. Run the five checks again after any deploy of the main site and any change to the proxy routes. Whoever runs the route, a managed service like ours included, should leave /robots.txt with the owner of /.

Platform guides with the same gap

Ghost on a subdirectoryThe proxy rules Ghost(Pro) sets, and how to validate them.Mintlify docs at /docsRoutes, headers, and the duplicate Mintlify hostnames.WordPress in a subfolderKeep wp-admin and plugins while the blog runs at /blog.How the managed route worksConnect, map the path, preview, one DNS change.

Sitemap and robots.txt FAQs

Does Google read robots.txt in a subfolder?

No. Google’s robots.txt specification says crawlers don’t check for robots.txt files in subdirectories, and that the file must sit in the top-level directory of the host. A file at /blog/robots.txt has no effect on Google.

Can the root robots.txt control a reverse-proxied blog?

Yes. Rules in yourdomain.com/robots.txt apply to every path on that host, including paths your proxy sends to another platform. Write them with the full prefix, for example Disallow: /blog/ghost/ instead of Disallow: /ghost/.

Do I need a separate sitemap for /blog?

No. One sitemap at the root that lists every URL works, and so does a pointer to the sitemap your platform already generates. Google also notes that a site of about 500 pages or fewer, well linked from the home page, might not need a sitemap at all.

Is submitting the blog sitemap in Search Console enough?

For Google, yes. A sitemap submitted in Search Console is not limited to its own directory. The Sitemap line in the root robots.txt also reaches Bing and the other engines that read the field, so adding both covers more crawlers.

Can a sitemap on blog.yourdomain.com list yourdomain.com/blog URLs?

Only through cross-submission: verify both sites in Search Console, or reference that sitemap from the robots.txt on yourdomain.com. Without either, a sitemap only covers URLs in its own directory on its own host.

Does moving the blog into a subfolder help rankings?

Google’s documentation does not say subfolders rank better than subdomains. The files on this page are about keeping crawling and discovery working after the move, whatever its reason.

One domain for every platform.

Start a trial, map your first subfolder route, and preview it on your own domain before changing any DNS.

utilly

One domain for every site you run. Utilly reverse-proxies Webflow, WordPress, and AI-built apps into subfolders of your main domain.

Product

  • How it works
  • Pricing
  • Webflow Reverse Proxy
  • WordPress Reverse Proxy
  • Framer Reverse Proxy
  • Shopify Reverse Proxy

AI-built apps

  • Vibe-coded apps
  • Lovable on your domain
  • Bolt on your domain
  • Replit on your domain

Learn

  • Subdomain vs. subfolder
  • Webflow proxy setup guide
  • Subdomain migration guide
  • HubSpot blog on a subdirectory
  • Canonical tags behind a proxy
  • Ghost blog on a subdirectory
  • Mintlify docs at /docs
  • Sitemaps and robots.txt
  • GitBook docs at /docs
  • vs. Cloudflare Workers DIY
  • vs. self-hosted nginx

Legal

  • Privacy Policy
  • Refund Policy
  • Terms of Service

Get started

  • Log in
  • Start free trial

© 2026 Utilly. All rights reserved.

utilly.co/*