On this page
A URL structure for a documentation site should help readers recognize where they are and help your team maintain links as products and versions change. This guide compares common path layouts and provides a practical way to choose one, migrate existing pages, and handle end-of-life versions.
Key Takeaways
- Put stable product, version, and topic identifiers in predictable positions; use only the segments your site needs.
- Choose whether an unversioned URL means a fixed release or the current release, and document that behavior.
- Redirect moved pages to their closest equivalents, but keep useful end-of-life documentation available when feasible.
- Keep URLs readable without making them mirror every level of the navigation menu.
- Decide how duplicate pages, canonical URLs, and indexing will be handled before launch; none guarantees a search ranking improvement.
Compare URL structures
The examples below use a fictional product called Atlas and a topic called authentication.
| Structure | Example | Useful when | Main trade-off |
|---|---|---|---|
| Topic only | https://docs.example.com/authentication/ | One product has one maintained documentation set | Adding products or independently maintained versions may require a migration |
| Product, then topic | https://docs.example.com/atlas/authentication/ | Several products need separate documentation | A versioning convention may still be needed |
| Product, version, then topic | https://docs.example.com/atlas/v2/authentication/ | Users need instructions for a specific release | You must maintain version navigation and lifecycle rules |
| Version, product, then topic | https://docs.example.com/v2/atlas/authentication/ | A single release number applies across a coordinated product suite | Awkward if products release independently |
For independently versioned products, product-first paths usually make ownership and lifecycle boundaries easier to express. For a suite with one shared release, version-first paths can make the shared release explicit. Neither order is inherently better for search: choose the one that matches how readers identify the software they use.
Use recognizable, consistent segments: for example, atlas, v2, and authentication. Avoid names tied to internal team structures that may change. Reserve space for future products or locales only when there is a plausible need; a segment such as /en/ adds little if localization is not planned.
Advertisement
Decide what a version URL means
A version segment can represent an exact release, a major release, or a moving alias. These have different maintenance costs.
| Choice | Example | Reader expectation | Maintenance implication |
|---|---|---|---|
| Exact release | /atlas/v2.3/authentication/ | Instructions stay tied to 2.3 | More copies and lifecycle decisions as releases accumulate |
| Major release | /atlas/v2/authentication/ | Instructions apply to version 2, subject to the site's stated update policy | Fewer paths, but explain which minor releases the page covers |
| Moving alias | /atlas/latest/authentication/ | The destination changes when the current release changes | Convenient entry point, but unsuitable as a permanent reference to one release |
A practical policy for a versioned product might be:
- Publish version-specific pages under
/atlas/v2/and/atlas/v3/. - Make
/atlas/latest/authentication/redirect to the current version's equivalent page, such as/atlas/v3/authentication/. - Use version-specific URLs in release notes and integration instructions when the reader needs a reproducible reference.
- Display the version and its support status on each page, with links to equivalent pages in other versions when available.
An unversioned path such as /atlas/authentication/ can instead serve as the current documentation entry point. If so, say that its meaning can change. Avoid silently treating an unversioned path as both a permanent version and a moving alias.
Duplicate pages and search visibility
If an alias and a versioned URL both serve identical content, decide which URL is the preferred representation. Depending on your platform and goals, you might redirect the alias or use a canonical URL signal. Canonical signals are not a substitute for a redirect when you want visitors to arrive at a different URL, and search engines may choose a different canonical URL.
Do not automatically canonicalize every old version to the latest page: old instructions can be materially different and useful to users of that release. Choose an indexing and canonical policy for version-specific content deliberately, and validate it with your documentation platform and search-engine guidance. Search visibility depends on more than URL shape; no path convention guarantees better rankings.
Keep navigation useful without overfitting URLs
Navigation and URL depth are related but need not be identical. A reader might reach a page through Atlas → Guides → Security → Authentication, while the URL remains /atlas/v2/authentication/. A shorter path can survive a navigation redesign, provided the topic name is unambiguous within that product and version.
Add a parent topic segment when it provides necessary context, such as /atlas/v2/api/authentication/ versus /atlas/v2/cli/authentication/. Avoid deeply nesting paths solely to reproduce every menu level. Conversely, don't flatten so aggressively that multiple topics compete for the same name.
Use breadcrumbs, a version selector, and clear page titles to supply context that the path does not carry. Check that a reader can move between nearby topics without repeatedly returning to the homepage.
Advertisement
Plan moves and redirects before publishing
Create a mapping from each old URL to the closest relevant new URL. Include common legacy paths and important links from release notes, support articles, and external integrations. For example:
| Old URL | New URL | Decision |
|---|---|---|
/guide/login/ | /atlas/v2/authentication/ | Redirect if the new page replaces the old guidance |
/guide/api/ | /atlas/v2/api/ | Redirect to the equivalent section landing page |
/guide/removed-feature/ | None | Return a useful removal or replacement explanation rather than redirecting blindly to the homepage |
For permanent moves, configure an appropriate permanent HTTP redirect, commonly 301 or 308. Use a temporary redirect when the destination is expected to change, such as a moving version alias. Verify the behavior of your hosting platform, including trailing slashes and query strings. Permanent redirects can be cached, so review mappings before deploying them.
Test representative URLs with a browser and a command such as curl -I https://docs.example.com/guide/login/, substituting your own host and path. Check the status and Location header, then follow the redirect and confirm that the destination is correct. Also check for redirect chains, loops, missing targets, and links within the new site that still point to old paths.
Page fragments such as #configuration require special attention: the server does not receive the fragment in the HTTP request, so a server-side redirect cannot inspect it to map individual headings. Keep important heading IDs stable where possible, and check deep links in a browser after migration. If heading IDs must change, consider compatibility anchors or a page-level solution supported by your platform.
Decide what happens at end of life
A version reaching end of life does not automatically mean its URLs should point to the latest release. A developer maintaining an older installation may still need the original instructions; redirecting them to different behavior can be misleading.
Choose and publish a lifecycle policy:
- Archive when feasible: Keep version-specific pages at their existing URLs, mark them prominently as unsupported, and link to current documentation and migration guidance.
- Explain support limits: State whether archived pages receive corrections and where readers can find the product's support policy. An archive notice is not a substitute for security maintenance.
- Remove deliberately: If content cannot remain available, provide a useful explanation and links to relevant alternatives. Where a page is permanently gone without a replacement, use an appropriate
404or410response rather than pretending an unrelated page is its replacement. - Redirect selectively: Redirect a retired page only when its destination is a meaningful replacement. Preserve a version-specific archive instead when the old content remains necessary and can be hosted safely.
Assign an owner for the archive, redirects, and any hosting costs. Review the policy when legal, security, or product requirements change.
Review checklist
Before committing to a structure, ask:
- Readability: Can a reader identify the product, version, and topic without decoding internal abbreviations?
- Consistency: Are segment order, casing, separators, and trailing-slash behavior consistent across the site?
- Version meaning: Is it clear whether each URL is fixed, updated within a release line, or a moving alias?
- Navigation: Can readers find adjacent topics and switch versions without losing context?
- Growth: Can the structure accommodate a likely new product, version, or locale without renaming everything?
- Migration: Is there an owner and a tested mapping for old pages and important fragment links?
- Lifecycle: Are archiving, support notices, removal, and redirect decisions defined for end-of-life versions?
- Search and platform behavior: Have the team checked its platform's routing, redirect, canonical, and sitemap capabilities against current search-engine guidance?
Common Mistakes
- Choosing only for appearance: A short path is not useful if it hides which product or release the instructions apply to.
- Making
latesta permanent reference: Its destination can change; use a version-specific link when reproducibility matters. - Redirecting every old page to the homepage: This loses context and can conceal missing content.
- Renaming headings without checking deep links: A page may load successfully while a link to a specific section no longer works.
- Assuming all versions are duplicates: Two releases can have different commands, API behavior, or security guidance even when their pages look similar.
Best Practices
Record the chosen path pattern and version policy in your documentation contribution guide. Require new pages and moves to follow it, and review exceptions. Maintain an inventory of redirects and archived versions so that future migrations do not start from guesswork.
This guide gives general decision principles; documentation-platform and search-engine documentation could not be consulted for this draft. Confirm the current guidance and configuration options for your chosen platform before implementation.
Conclusion
Start with the way readers identify your product and release, then choose the fewest stable path segments that express that context. Treat redirects, version aliases, and end-of-life handling as part of the structure—not as cleanup work after launch.
What would your domain sell for?
A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.