# Mintlify redirects

> Add permanent redirects in Mintlify’s docs.json, catch broken internal links with the CLI, and verify old paths after publishing.

Canonical: https://scaplet.com/seo/mintlify/redirects

Guide Mintlify · URL migrations

Add permanent redirects in Mintlify’s docs.json, catch broken internal links with the CLI, and verify old paths after publishing.

4 min

read

3

sources

Oct 24, 2026

updated

Scaplet Editorial Team

author

In one line

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.

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fmintlify%2Fredirects%20(%22Mintlify%20redirects%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fmintlify%2Fredirects%20(%22Mintlify%20redirects%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fmintlify%2Fredirects%20(%22Mintlify%20redirects%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fmintlify%2Fredirects%20(%22Mintlify%20redirects%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 3 parts, 4 minutes.

1. [Add a redirect for each retired path 01](#add-a-redirect-for-each-retired-path)
2. [Find broken links before and after the move 02](#find-broken-links-before-and-after-the-move)
3. [Keep search signals consistent 03](#keep-search-signals-consistent)

_01_How it works

## Add a redirect for each retired path

Mintlify derives a page URL from its file path. Renaming or moving a file can therefore retire a public URL that already appears in [search results](/glossary/serp), docs links, or customer bookmarks. Keep a route map before restructuring: old path, intended replacement, and reason for the move.

docs.json

```
{ "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](/glossary/301-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.

1. 01

### Open the root docs.json

Edit the `docs.json` file at the root of the Mintlify docs repository. Add redirects at the top-level `redirects` key.
2. 02

### Map the old path to the closest replacement

Use a `source` and `destination` path that each start with `/`, as in Mintlify’s examples. Sources cannot include anchors (`path#anchor`) or [query parameters](/glossary/url-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.
3. 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.
4. 04

### Publish the configuration

Run `mint dev` and visit the source path locally; Mintlify says the dev server applies the redirects in `docs.json`. Preview deployments apply them too. Redirects take effect when your changes deploy.

_02_How it works

## Find broken links before and after the move

1. 1

### Run the link checker

Install or update Mintlify’s CLI for the project, then run `mint broken-links` from the docs repository. It scans `.mdx` and `.md` files for [broken internal links](/seo-issues/broken-internal-links). Add `--check-redirects` to check that redirect destinations in `docs.json` resolve to valid paths, `--check-anchors` to validate `#section` links, and `--check-external` to check external URLs.
2. 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. 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 `permanent` to `false`) and `Location` header, then follow it and confirm the destination returns the expected page.
4. 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.

**The CLI check has a defined scope**By default `mint broken-links` checks [internal links](/glossary/internal-links) in your `.mdx` and `.md` files; it does not check links inside OpenAPI spec files, and it is not a production HTTP status audit. Test deployed redirects separately.

_03_Checklist

## Keep search signals consistent

1. 01 Update internal links to the final URL instead of relying on the redirect forever.
2. 02 Use the destination page’s [canonical URL](/glossary/canonical-url) and include the destination in the sitemap, not the retired path.
3. 03 Keep the old source path for a permanent move and avoid redirecting multiple unrelated pages to one generic destination.
4. 04 During 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](/seo-issues/redirect-chains), the [XML sitemap guide](/glossary/xml-sitemap), and [Google Search Console sitemap submission](/seo/google-search-console/sitemap-submission).

Questions

## Asked a lot.

3 questions people ask next, answered from the sources on this page.

_01_ Where 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.

_02_ Can 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.

_03_ Does 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.

Sources · 3

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- mintlify.com
- google.com

1. 01 [Redirects and broken links | Mintlify Docs](https://www.mintlify.com/docs/create/redirects) mintlify.com · checked 2026-10-24
2. 02 [Redirects and Google Search | Google Search Central](https://developers.google.com/search/docs/crawling-indexing/301-redirects) developers.google.com · checked 2026-10-24
3. 03 [Site Moves and Migrations | Google Search Central](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes) developers.google.com · checked 2026-10-24

## Keep learning

[All platform guides](/seo)

[Learn Mintlify AI crawlers and llms.txt Docs platforms](/seo/mintlify/ai-crawlers) [Related 302 redirect Crawling and indexing](/glossary/302-redirect) [Read next Mintlify noindex pages Docs platforms](/seo/mintlify/noindex) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in platform guides
[Next.js SEO](/seo/nextjs) [Next.js 404 page](/seo/nextjs/404)

More in Docs platforms
[Mintlify AI crawlers and llms.txt](/seo/mintlify/ai-crawlers) [Mintlify noindex pages](/seo/mintlify/noindex) [Mintlify redirects](/seo/mintlify/redirects)

Terms on this page
[SERP](/glossary/serp) [URL parameters](/glossary/url-parameters) [301 redirect](/glossary/301-redirect) [Internal links](/glossary/internal-links) [Canonical URL](/glossary/canonical-url) [XML sitemap](/glossary/xml-sitemap)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
