In short
Product documentation and the knowledge base (help center) explain how to use the software, article by article. When public and indexable, they answer the “how do I do X in [product]” questions asked of Google and AI assistants, and let prospects check a feature without requesting a demo. Once this check is done, every useful article that is not tied to a customer account is accessible without logging in, rendered as HTML, listed in a sitemap, and the property that hosts it is tracked in Search Console.
Why it matters
Many searches around a piece of software are usage questions: “Planifia export schedule Excel”, “Planifia add a technician”, “Planifia sync Google Calendar”. Customers ask them, but so do prospects who want to know whether something can be done before buying. If the documentation sits behind a login, these queries lead to forums, old videos or nothing at all.
AI assistants are increasingly asked how to use software. When they search the web, public documentation, structured as short articles that each answer one question, is the most direct source. Closed documentation pushes them to guess, or to cite an outdated third-party source. Several documentation platforms also produce llms.txt files and Markdown versions of their pages; these formats remain experimental and their use by engines is not established.
Documentation is also proof: it shows what the product actually does, its prerequisites and its limits, better than a sales page.
What it improves
- Long tail Hundreds of precise usage queries, often with no competition.
- AI assistant answers An official source for “how to” and “is it possible” questions. No guarantee of citation.
- Pre-sales Prospects check a feature or an integration for themselves.
- Support Fewer tickets on documented questions.
- Rankings An effect specific to each article; good documentation does not, on its own, make sales pages rank.
How to check
1. Are the articles public? Open an article in a private window, without being logged in. Then:
curl -s -o /dev/null -w "%{http_code} %{redirect_url}\n" https://docs.example.com/planning/exporter-excel
A 200 is expected. A 302 to a login page or a 401/403 means the article is closed.
2. Is the content in the HTML?
curl -s https://docs.example.com/planning/exporter-excel | grep -c "Exporter le planning"
Zero occurrences while the sentence is visible in the browser: the article is rendered client-side; check it with the Search Console URL Inspection tool.
3. Are the indexing directives correct?
curl -s https://docs.example.com/planning/exporter-excel | grep -i -E '<meta name="robots"|rel="canonical"'
curl -s https://docs.example.com/robots.txt
No noindex on articles, a canonical pointing to the public URL, no Disallow on the documentation.
4. Does Search Console cover the documentation? A Domain property (example.com) includes every subdomain, docs.example.com among them. With a URL-prefix property https://www.example.com/, a documentation subdomain is not tracked.
How to implement
The examples follow Planifia, a fictional vendor. docs-origin.example.net stands for the documentation's origin host.
Before you start
What should be public. Everything that explains the product: getting started, features, integrations, administration, common troubleshooting, release notes. What stays private: internal procedures, information specific to one customer, articles that expose a vulnerability or sensitive data. See make public pages accessible without logging in (opens in a new tab).
Subdomain or subdirectory. docs.example.com and example.com/docs/ both work; Google documents no ranking preference between them. The subdirectory makes it easier to track everything within a single set of URLs and to link with the commercial site; it requires a reverse proxy if the documentation tool is hosted elsewhere (Nginx, Apache, Cloudflare, Vercel and Next.js sections). The choice matters mostly for stability: decide once, then do not change URLs again without a redirect plan.
Shared editorial rules:
- One article per question, with a title phrased as the task: “Export the schedule to Excel”.
- The answer first: one or two sentences saying whether it is possible and in which plan, then the numbered steps.
- Prerequisites and limits at the top: plan, required permissions, mobile app version.
- Captioned screenshots with descriptive alt text, and the button labels written out in full.
- A real update date on every article.
- Links to the corresponding feature page and to related articles.
- Stable URLs:
/planning/exporter-excel, not an identifier that changes with every tool migration.
Internal search and versions. The documentation's search results pages must not be indexed. See handle internal search results with no SEO value (opens in a new tab). For versioned documentation, let the current version be indexed and deindex or canonicalize the old ones.
Docusaurus
The sitemap plugin is included in @docusaurus/preset-classic. Configure the public URL, the base path and the exclusion of old versions in docusaurus.config.js:
// docusaurus.config.js
module.exports = {
url: 'https://example.com',
baseUrl: '/docs/',
trailingSlash: false,
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
routeBasePath: '/',
lastVersion: 'current',
versions: {
current: { label: '3.x' },
'2.x': { noIndex: true, banner: 'unmaintained' },
},
},
sitemap: {
lastmod: 'date',
ignorePatterns: ['/docs/tags/**', '/docs/search'],
},
},
],
],
};
url and baseUrl must match the public address, including behind a proxy: they are used to build the canonicals and the sitemap. Do not turn on the site-level noIndex option, which deindexes everything and removes the sitemap. Run npm run build, then check build/sitemap.xml.
Mintlify
Mintlify automatically generates /llms.txt, /llms-full.txt and a Markdown version of each page. In the dashboard, configure the custom domain (docs.example.com); to serve the documentation under example.com/docs, follow the subdirectory procedure in the Mintlify documentation, which relies on a reverse proxy (see the Cloudflare, Vercel or Nginx sections). Then check that no public page is protected by authentication and that the sitemap responds on the final domain.
GitBook
In the published site's settings, under Audience, choose “Public”: the private share link and authenticated access options close the documentation to search engines. GitBook also publishes /llms.txt, /llms-full.txt and a Markdown version of each page (add .md to the URL). Configure a custom domain so that the URLs belong to your domain.
Zendesk
In Zendesk Guide, each article has a visibility setting: “Everyone” or a user segment (for example signed-in users). Only articles visible to everyone can be indexed. Also check the setting that requires signing in to access the whole help center: if it is on, nothing is public. The help center exposes a sitemap, usually at /hc/sitemap.xml: check it on your domain and submit it in Search Console. The same checks apply to Intercom, HubSpot or Freshdesk help centers: article visibility, custom domain, sitemap.
WordPress
Versions WordPress 6.4 to 7.1; Yoast SEO 20 and later or Rank Math 1.0.x.
For a knowledge base on WordPress, use a dedicated post type or a knowledge base plugin, with a URL such as /aide/categorie/article/. Check in Yoast SEO or Rank Math that the post type and its categories are indexable and included in the sitemap, and that internal search results pages are set to noindex.
Nginx
Versions Nginx 1.18 and later.
To serve documentation hosted elsewhere under example.com/docs/, add the following to the site's server block, for example in /etc/nginx/sites-available/example.com:
location /docs/ {
proxy_pass https://docs-origin.example.net/docs/;
proxy_ssl_server_name on;
proxy_set_header Host docs-origin.example.net;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
sudo nginx -t && sudo systemctl reload nginx
Configure the documentation tool so that it generates its links, canonicals and sitemap with https://example.com/docs/. Then block indexing of the origin (docs-origin.example.net) or redirect it, to avoid two copies.
Apache
Versions Apache 2.4.
Enable mod_proxy, mod_proxy_http and mod_ssl (sudo a2enmod proxy proxy_http ssl), then in the virtual host:
SSLProxyEngine on
ProxyPreserveHost Off
<Location "/docs/">
ProxyPass "https://docs-origin.example.net/docs/"
ProxyPassReverse "https://docs-origin.example.net/docs/"
</Location>
sudo apachectl configtest && sudo systemctl reload apache2
ProxyPass directives do not work in an .htaccess file: on shared hosting, prefer a docs.example.com subdomain pointed at the documentation tool.
Cloudflare
Versions Cloudflare Workers, all plans (Free plan included), dashboard as of November 2026.
A Worker can serve the documentation under /docs/ without touching the server. Create it in Workers & Pages:
export default {
async fetch(request) {
const url = new URL(request.url);
const upstream = new URL(url.pathname + url.search, 'https://docs-origin.example.net');
return fetch(new Request(upstream, request));
},
};
In the Worker, open Settings > Domains & Routes > Add > Route, choose your zone and enter the route example.com/docs/*. Test with the curl commands from the “How to check” section, then purge the cache if an old version is served.
Vercel
Versions vercel.json file, all Vercel plans, November 2026.
If the commercial site is on Vercel, declare a rewrite in vercel.json:
{
"rewrites": [
{ "source": "/docs", "destination": "https://docs-origin.example.net/docs" },
{ "source": "/docs/:path*", "destination": "https://docs-origin.example.net/docs/:path*" }
]
}
Next.js
Versions Next.js 15 and 16 (App Router and Pages Router).
With a Next.js site hosted somewhere other than Vercel, the same rewrite is declared in next.config.js (or in the object exported by next.config.ts, the file create-next-app creates by default):
// next.config.js
module.exports = {
async rewrites() {
return [
{ source: '/docs', destination: 'https://docs-origin.example.net/docs' },
{ source: '/docs/:path*', destination: 'https://docs-origin.example.net/docs/:path*' },
];
},
};
After going live
- Submit the documentation's sitemap in Search Console and Bing Webmaster Tools, or declare it in
robots.txt. - Link each feature and integration page to its documentation article, and vice versa. See create pages for actual integrations (opens in a new tab).
- Let through the AI crawlers you have chosen to allow: check that the documentation platform's firewall does not block them. See test HTTP responses for each crawler (opens in a new tab).
- Measure: usage queries in Search Console, tickets avoided, most viewed articles before a trial request.
- Evaluate
llms-full.txtonly if you have an identified use for it. See evaluate llms-full.txt for documentation (opens in a new tab).
Common mistakes
- All documentation behind the customer login “just in case”, getting-started articles included.
- A help center on a subdomain missing from Search Console: no visibility into its performance or its errors.
- Two indexable copies: the proxy origin and the public URL.
- Canonicals pointing to the origin host after a move to a subdirectory.
- Switching documentation tools without redirects: every URL changes, and links from support and from assistants break.
- Video-only or PDF-only articles, with no written steps.
- Outdated articles describing the old interface, with no date.
Frequently asked questions
Should software documentation be public?
Yes, for everything that explains the product: getting started, features, integrations, administration and common troubleshooting. Public documentation answers the “how to” queries of customers and prospects, serves as an official source for AI assistants and reduces support tickets. Keep private the internal procedures, information specific to one customer and articles that would expose a security vulnerability.
Should documentation live on a subdomain or in a subdirectory?
Both work: Google documents no ranking preference between docs.example.com and example.com/docs. The subdirectory makes linking with the commercial site easier but requires a reverse proxy if the documentation tool is hosted elsewhere. The subdomain is simpler to set up. What matters is to choose once, track the whole domain in Search Console and never change URLs again.
Does documentation need an llms.txt file?
It is not necessary, and its effect has not been demonstrated. The llms.txt file remains an experimental proposal, and the main engines do not document using it. Platforms such as Mintlify and GitBook generate it automatically, which costs nothing. Elsewhere, give priority to public articles, rendered as HTML, listed in the sitemap and accessible to the crawlers you have chosen to allow.
Why does my Zendesk help center not appear in Google?
First check article visibility: only articles visible to everyone can be indexed, not those reserved for signed-in users. Then check that the help center does not require signing in, that its domain is covered by a Search Console property, and that its sitemap has been submitted. Finally, inspect a few URLs in Search Console to spot a robots.txt block or a noindex directive.
Resources
- Google Search Central: SEO Starter Guidedevelopers.google.com
- Search Console Help: add a website propertysupport.google.com
- Docusaurus: sitemap plugin and docs plugin, versionsdocusaurus.io
- Mintlify: llms.txtmintlify.com
- GitBook: LLM-ready docs and publish a docs sitegitbook.com
- Zendesk: getting started with the help centersupport.zendesk.com
- Nginx: proxy module and Apache: mod_proxynginx.org
- Cloudflare: Workers routes and Vercel: rewritesdevelopers.cloudflare.com
Updated on
Topic checklist (PDF)