From 416320303ea54823122597ae7b7159ea9b797b6f Mon Sep 17 00:00:00 2001
From: Ruhan Ponnada <48140192+ruhanponnada@users.noreply.github.com>
Date: Thu, 18 Dec 2025 09:26:31 -0800
Subject: [PATCH 1/2] Update create/redirects.mdx
Co-Authored-By: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
---
create/redirects.mdx | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/create/redirects.mdx b/create/redirects.mdx
index c084c5440..dd051efc2 100644
--- a/create/redirects.mdx
+++ b/create/redirects.mdx
@@ -32,6 +32,17 @@ To match a wildcard path, use `*` after a parameter. In this example, `/beta/:sl
]
```
+
+ Do not create redirects that strip your docs subpath prefix, as this causes infinite redirect loops. For example, if your docs are hosted at `/docs`, avoid:
+ ```json
+ {
+ "source": "/docs/:slug*",
+ "destination": "/:slug*"
+ }
+ ```
+ This redirect would continuously loop because the destination `/:slug*` resolves back to `/docs/:slug*`.
+
+
## Broken links
Catch broken links with our CLI. [Install the CLI](/installation) and run the command:
From 8a726a8f755503423e375a7e57febbcc2d8e2a43 Mon Sep 17 00:00:00 2001
From: Ruhan Ponnada <48140192+ruhanponnada@users.noreply.github.com>
Date: Thu, 18 Dec 2025 09:33:51 -0800
Subject: [PATCH 2/2] Update warning message for redirect rules
Clarified warning about redirect rules to prevent infinite loops.
---
create/redirects.mdx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/create/redirects.mdx b/create/redirects.mdx
index dd051efc2..752f008e5 100644
--- a/create/redirects.mdx
+++ b/create/redirects.mdx
@@ -33,14 +33,13 @@ To match a wildcard path, use `*` after a parameter. In this example, `/beta/:sl
```
- Do not create redirects that strip your docs subpath prefix, as this causes infinite redirect loops. For example, if your docs are hosted at `/docs`, avoid:
+ The destination slug cannot match to the source slug. For example, if your docs are hosted at `/docs`, avoid:
```json
{
"source": "/docs/:slug*",
"destination": "/:slug*"
}
```
- This redirect would continuously loop because the destination `/:slug*` resolves back to `/docs/:slug*`.
## Broken links