Add X-Robots-Tag: noindex for .mintlify.app subdomains when custom domain is configured #2626
Replies: 5 comments
|
+1 on this. We have this exact problem — Google is indexing our Searching the The canonical tag approach is clearly not sufficient — Google is treating it as a hint and continuing to index the mintlify.app version. A 301 redirect or Netlify has been doing this automatically for years. Would love to see Mintlify implement this. |
|
+1 |
|
+1 Also there is a little problem with the SEO -> meta tags -> robots setting. We wanted to disable indexing by adding this tag, so that the So, IMHO it would be better to have some switch that would exclude |
|
We hit this too, and we now have an answer from Mintlify support that is worth putting on the record here. Our setup: custom domain What is already correct on Mintlify's side: the mirror serves a proper per-page, cross-domain canonical, and the sitemap served by the mirror lists only custom-domain URLs (64 out of 64 in our case). So the "your canonical is misconfigured" explanation does not apply here. What is missing: the mirror answers 200 on every page, including with a Googlebot user agent, with no We opened a support ticket about this. The reply, verbatim:
Support also pointed us to the feature-requests board to get the use case tracked, which is exactly what this thread already is, open since January. So the issue is acknowledged internally and owned by Mintlify. It would help to have that status reflected here, and ideally a rough timeline. @Blargian on the dashboard no-index toggle: it does not address this. It is project-wide, so it would noindex the custom domain too, which is the domain we want ranking. It also applies a meta tag rather than a response header, which is what @vokiel ran into when trying to rewrite it at the edge. The fix has to be host-aware and served as an HTTP header. One implementation note: the information needed is already available at request time. The mirror already renders the custom domain in both the canonical and the sitemap, so the canonical host for the project is known while the response is being served. Emitting |

Uh oh!
There was an error while loading. Please reload this page.
Problem
When a custom domain is configured (e.g., docs.example.com), the default .mintlify.app subdomain remains publicly accessible and crawlable by search engines. This creates a duplicate content issue that can negatively impact SEO.
Both URLs serve identical content and both get indexed by Google.
Why canonical tags are not enough
Mintlify correctly sets the canonical URL to the custom domain, but search engines treat canonical tags as hints, not directives. Google may still:
Index the .mintlify.app subdomain
Split link equity between both URLs
Show the wrong URL in search results
Waste crawl budget on duplicate pages
Proposed solutions
Option 1: X-Robots-Tag HTTP header (recommended)
Automatically add the following HTTP header for .mintlify.app subdomains when a custom domain is configured:
X-Robots-Tag: noindex, nofollow
This is the industry standard approach. Vercel and Netlify already do this automatically for preview deployments and non-production URLs.
Option 2: 301 redirect
Implement automatic 301 redirects from *.mintlify.app to the configured custom domain. This would:
Pass full link equity to the custom domain
Ensure users always land on the correct URL
Completely eliminate duplicate content
Option 3: Configuration option
Add a setting in docs.json to control subdomain behavior:
"seo": {
"disableMintlifySubdomain": true
}
Or in the dashboard under Domain Settings.
Impact
This affects all Mintlify users who configure custom domains. Without this fix, users must either:
Accept potential SEO penalties from duplicate content
Manually request URL removal through Google Search Console (temporary fix)
Thank you for considering this feature. Happy to provide additional details if needed.
All reactions