Mintlify redirects
Add permanent redirects in Mintlify’s docs.json, catch broken internal links with the CLI, and verify old paths after publishing.
Mintlify redirects are configured in the root docs.json file with a redirects array containing source and destination paths. By default they are permanent 308 redirects, not 301; set permanent to false for a temporary 307. Wildcards are supported. After moving a page, add the redirect, run mint broken-links --check-redirects, then request the old URL after publishing.
Where does your site stand?
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
- Free audit in 60 seconds
- Fixes drafted for your review
- ChatGPT, Perplexity, Gemini and AI Overviews tracked
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
- Re-check after big site changes
- Keep this page for reference
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
- Follow the steps below
- Top-traffic pages first
- Check again in a month
3 parts, 4 minutes.
Add a redirect for each retired path
{
"redirects": [
{
"source": "/old-guides/:slug*",
"destination": "/guides/:slug*"
}
]
}Mintlify’s redirects are permanent (308) by default. Google lists both 301 and 308 as permanent redirect types, and says its indexing pipeline uses them as a signal that the target should be canonical. A permanent redirect fits a URL that has actually moved. For a short-term reroute, set "permanent": false: Mintlify then sends a temporary 307, and says search engines keep the source URL in their index and do not transfer ranking. When more than one redirect matches, Mintlify picks exact sources first, then partial wildcards, then other wildcards, and within each group the first entry in the array wins, so list specific sources before broad ones.
- 01
Open the root docs.json
Edit the
docs.jsonfile at the root of the Mintlify docs repository. Add redirects at the top-levelredirectskey. - 02
Map the old path to the closest replacement
Use a
sourceanddestinationpath that each start with/, as in Mintlify’s examples. Sources cannot include anchors (path#anchor) or query parameters; destinations may include anchors. Point to a page that satisfies the old URL’s purpose; do not send unrelated deleted pages to the home page. - 03
Use a wildcard only for a one-to-one path migration
For a section move, use a named path parameter with a wildcard, such as
/beta/:slug*to/v2/:slug*. Each source can contain only one wildcard, and sources do not support regular expressions. Verify nested paths and the zero-segment case before publishing. - 04
Publish the configuration
Run
mint devand visit the source path locally; Mintlify says the dev server applies the redirects indocs.json. Preview deployments apply them too. Redirects take effect when your changes deploy.
Find broken links before and after the move
- 1
Run the link checker
Install or update Mintlify’s CLI for the project, then run
mint broken-linksfrom the docs repository. It scans.mdxand.mdfiles for broken internal links. Add--check-redirectsto check that redirect destinations indocs.jsonresolve to valid paths,--check-anchorsto validate#sectionlinks, and--check-externalto check external URLs. - 2
Repair links inside the docs
Update navigation, page links, snippets, and references to point directly at the current URL. A redirect preserves old links, but current documentation should not add avoidable hops.
- 3
Test source paths over HTTP
After publishing, request a sample old path including a nested wildcard path. Check the response status (308 unless you set
permanenttofalse) andLocationheader, then follow it and confirm the destination returns the expected page. - 4
Check the destination set
Crawl the sitemap or route list and verify every redirect destination is a canonical, successful URL. Look for chains, loops, missing pages, and redirects to a different topic.
Keep search signals consistent
- 01Update internal links to the final URL instead of relying on the redirect forever.
- 02Use the destination page’s canonical URL and include the destination in the sitemap, not the retired path.
- 03Keep the old source path for a permanent move and avoid redirecting multiple unrelated pages to one generic destination.
- 04During a docs migration, crawl both old and new routes and monitor Search Console for new 404s or unexpected destination errors.
Google uses permanent redirects as a signal that the destination should be canonical, but redirecting does not guarantee indexing. See redirect chains, the XML sitemap guide, and Google Search Console sitemap submission.
Asked a lot.
3 questions people ask next, answered from the sources on this page.
01Where do I add redirects in Mintlify?
Add a top-level redirects array in the root docs.json, with source and destination paths for each mapping. Add "permanent": false for a temporary 307; the default is a permanent 308.
02Can Mintlify redirect a whole docs section?
Yes. Mintlify documents wildcard parameters such as /beta/:slug* that can preserve the remaining path at a new destination. Each source is limited to one wildcard.
03Does mint broken-links test live redirects?
No. It checks the files in your docs repository. With --check-redirects it also checks that redirect destinations in docs.json resolve to valid paths, but it does not request your deployed URLs. Request old URLs to verify HTTP status and destination.
Every fact, linked and dated.
mintlify.com
google.com
- 01Redirects and broken links | Mintlify Docsmintlify.com · checked 2026-10-24
- 02Redirects and Google Search | Google Search Centraldevelopers.google.com · checked 2026-10-24
- 03Site Moves and Migrations | Google Search Centraldevelopers.google.com · checked 2026-10-24
Tools point. Agencies advise. This one ships.
Run the free audit, then approve the fixes. Every change can be undone.
- 46 fixes shipped without a ticket Brightpipe
- 0→7 ChatGPT citations in six weeks Paylane