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

Mintlify docs at /docs, on your own domain.

Mintlify can serve your docs at yourdomain.com/docs, and its free plan already includes the custom domain setup that turns it on. You set the base path in Mintlify, then route that path to mintlify.site from whatever serves your main site. This guide merges Mintlify's three proxy guides into one route list, then checks what Google actually finds on two live Mintlify subpath sites.

Published October 16, 2026. Mintlify documentation, pricing, and the live sites below checked the same day.

route tableall routes live
yourdomain.comutillyreverse proxy/Your site/docsMintlify

What has to be true before you start?

Four facts from Mintlify's subpath docs, custom domain page, and pricing decide whether this works for you.

Available on the free plan
Mintlify lists a custom domain on every plan, Starter ($0) included. The subpath is set with the Host at toggle on the same Custom domain setup page.
Two settings have to agree
The base path in the Mintlify dashboard and the route on your proxy. Mintlify says a folder named docs in your repository does not set the public path.
The proxy target is mintlify.site
Point the route at <your-subdomain>.mintlify.site. Mintlify’s troubleshooting traces docs updates that never appear to a proxy aimed at an outdated hostname.
Not for docs behind a login
Mintlify states that subpath hosting is not supported for documentation with authentication enabled.

Which paths does the proxy have to forward?

Everything under /docs, plus two root-level paths that two of Mintlify's three guides add. The Cloudflare Workers and Vercel guides route /mintlify-assets/* and /_mintlify/* from the root of the domain, not from under the subpath. The nginx guide's routing table lists only /docs paths and the verification paths.

/docs and /docs/*

<sub>.mintlify.site/docs/*

No cache

All three guides

/mintlify-assets/*

<sub>.mintlify.site/mintlify-assets/*

Only /mintlify-assets/_next/static/*

Workers and Vercel guides

/_mintlify/*

<sub>.mintlify.site/_mintlify/*

Not stated; leave uncached

Workers and Vercel guides

/.well-known/vercel/*

Passed through, never blocked

No cache

All three guides

/.well-known/acme-challenge/*

Passed through, never rewritten

No cache

Workers, Vercel, custom domain docs

Which set you need depends on the build Mintlify serves, and the docs do not say. On Mintlify's own subpath deployment today, the page loads its scripts from /docs/_mintlify/assets/, inside the subpath. The practical rule: forward all of /docs/*, add the two root routes when your provider's guide lists them, then open the network tab on a docs page and look for any 404 outside /docs.

Keep the subpath route broad. Mintlify warns against rewriting only /docs/llms.txt, because the indexes it links to live under /docs/_llms/. The root llms.txt and skill files are optional extra routes in the nginx guide.

Which headers does Mintlify expect?

Mintlify must see its own hostname, never yours, in Host and Origin. The rest carry the public host and the visitor's details. One guide sets Host and the other says not to forward it; both mean the same thing.

Host

<sub>.mintlify.site

The Workers script sets it explicitly. The nginx guide words the same rule as “do not forward the Host header”: Mintlify must never see your domain here.

Origin

<sub>.mintlify.site

Required by the reverse proxy guide. Mintlify lists a forwarded Host or a missing Origin as the cause of pages that load while features and API calls fail.

X-Forwarded-Host

yourdomain.com

Set in the Workers example script.

X-Forwarded-Proto

https

Preserves the original protocol.

X-Forwarded-For, X-Real-IP

Client IP

Preserve the visitor’s address.

Methods

All, POST included

Analytics events are POST requests to /docs/_mintlify/api/v1/e. A proxy that allows only GET and HEAD empties the analytics dashboard without any error on the page.

One trap when reading across guides: the Vercel page tells you to forward the Host header correctly. That instruction covers a different hop, an external proxy sitting in front of your own Vercel deployment, where the original Host has to reach Vercel. On the hop to Mintlify, Host is the mintlify.site name.

What does Google find on a Mintlify subpath?

The same page on three hosts, each with a canonical tag naming your domain. We fetched one page on two production subpath sites, Mintlify's own docs and Resend's, plus their two Mintlify hostnames:

URL fetchedstatusrel=canonical
www.mintlify.com/docs/quickstart200www.mintlify.com/docs/quickstart
mintlify.mintlify.site/docs/quickstart200www.mintlify.com/docs/quickstart
mintlify.mintlify.app/quickstart200www.mintlify.com/docs/quickstart
resend.com/docs/introduction200resend.com/docs/introduction
resend.mintlify.site/docs/introduction200resend.com/docs/introduction
resend.mintlify.app/introduction200resend.com/docs/introduction

The canonicals are right, which is the good news. Mintlify builds them from the page URL and points the copies at the public address. The catch is that Google's canonicalization docs call a canonical preference “a hint, not a rule.” Mintlify's help article on the default address says it does not redirect or noindex mintlify.app, and that the default address sometimes outranks the custom domain.

The usual remedy is off the table for proxy setups. Support can make the default address return 404, but only when your DNS points at Mintlify directly; Mintlify says that if you serve docs through a reverse proxy, disabling it takes your custom domain down too. So the canonical tag is the protection you have. Two things keep it working: link to the /docs URLs everywhere, and be careful with the global seo.metatags.canonical override. Mintlify's SEO docs say it appends each page's path to that base URL, and to verify canonicals on the deployed site. If you set it, open one deployed page and look for a missing or doubled /docs.

Why doesn't Mintlify's robots.txt count?

Because it lands at /docs/robots.txt. Mintlify generates a robots.txt under the base path, and on both sites above it carries a Sitemap line for /docs/sitemap.xml. Google's robots.txt specification says the file must be in the top-level directory of a site, so the one Google reads is the root file your main site serves.

Both production sites close the gap at the root, in different ways. Mintlify's root sitemap lists the docs URLs directly. Resend's root sitemap is a sitemap index whose entries include resend.com/docs/sitemap.xml, which Google's sitemap index rules allow, since a root index may reference sitemaps in the same or deeper directories. The simplest version is one line in the root robots.txt:

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

That is also why Mintlify reserves /robots.txt and /sitemap.xml as names you cannot use for a base path. Those root files belong to your main site.

What breaks, and how does it show?

Most Mintlify proxy faults leave the page looking fine. These are the symptoms Mintlify documents, with its diagnosis for each.

Published changes never show up

The proxy points at an outdated hostname. Mintlify’s fix is to target <sub>.mintlify.site.

Pages load, search and API calls fail with 404

The proxy forwards your Host header, or sends no Origin header.

Slow loads and layout shifts

Documentation paths are cached. Mintlify says to cache only /mintlify-assets/_next/static/*.

A 500 error after 30 to 60 seconds on the page

On Cloudflare, the WAF or Bot Fight Mode flags asset requests. Mintlify gives a skip rule for paths starting with /mintlify-assets/.

llms.txt loads, its /_llms/ links return 404

The public subpath does not match the dashboard base path, or the proxy allowlists llms.txt but not /docs/_llms/*.

The analytics dashboard stays empty

The proxy drops POST requests on documentation paths.

If your main site already runs on Vercel or behind a Cloudflare Worker, Mintlify's generated config gets you most of the way, and the dashboard fills in your subdomain and base path for you. The ongoing work is re-checking the route list against Mintlify's guides when they change, keeping caching off the docs paths when someone tunes the CDN, and checking that a deploy of the main site never shadows /docs.

Moving from docs.yourdomain.com? Plan the redirects before you switch. Mintlify notes that removing a custom domain can break existing links to it, so something has to keep answering on the old host with page-level 301s. Whoever runs the route, a managed service like ours included, should show you the headers and cache rules above, and you should check them with curl and the network tab.

Leaving docs.yourdomain.com?Redirects, sitemaps, and the monitoring window for the move.Canonical naming the wrong host?Why proxies leave canonical tags behind, and how to check.Writing the Worker yourself?The build-vs-buy comparison for Cloudflare Workers.How the managed route worksConnect, map the path, preview, one DNS change.

Mintlify subpath FAQs

Can Mintlify host docs at yourdomain.com/docs?

Yes. Enable the Host at toggle on the Custom domain setup page, enter your base path, and add your domain. If another site already runs on that domain, Mintlify expects your host or CDN to proxy only the subpath to <your-subdomain>.mintlify.site.

Which Mintlify plan do I need for a subpath?

As of October 16, 2026, Mintlify’s pricing page lists a custom domain on every plan, including the free Starter plan, and does not list subpath hosting as a separate feature. The exception is authentication: Mintlify says subpath hosting is not supported for docs with authentication enabled.

Do I need a reverse proxy at all?

Only if something else lives on the domain. Mintlify can serve the subpath itself when your DNS points at Mintlify, but its docs say to choose that only if the domain hosts no other content and Mintlify can receive every path.

Will Google index my-company.mintlify.app as a duplicate?

It can. Mintlify says the default address stays reachable and crawlable, and that it does not redirect or noindex it. Pages there carry a canonical pointing at your domain, which Google treats as a hint. Support can switch the default address off, but Mintlify warns that doing so takes a reverse-proxied site down too.

Does /docs/robots.txt do anything?

Not for Google. Mintlify generates a robots.txt under the base path, but Google reads robots.txt only from the top-level directory of a host. List the docs sitemap in the robots.txt or sitemap index your main site serves at the root.

Is /docs better for SEO than docs.yourdomain.com?

Google’s documentation does not say subfolders rank better, and docs on a subdomain can rank well. The case for the subpath is keeping links and brand on one host. Our subdomain vs. subfolder guide covers both sides.

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/*