diff --git a/editor/configurations.mdx b/editor/configurations.mdx index 58ca67a58..3e9ec1145 100644 --- a/editor/configurations.mdx +++ b/editor/configurations.mdx @@ -99,6 +99,40 @@ Document your API endpoints. - **Playground display**: Choose to display the interactive API playground, simple API playground, or no API playground. - **Proxy server**: Enable or disable the proxy server for API requests. +## Manage redirects + +Use the **Redirects** section to add, edit, search, and remove redirects without manually editing your `docs.json` file. Redirects send users from old URLs to new ones, which is useful when you rename pages or restructure your documentation. For more information about redirect behavior, see [Redirects](/create/redirects). + +Each redirect has the following fields: + +- **Source**: The path to redirect from, like `/old-path`. Supports wildcards. +- **Destination**: The path to redirect to, like `/new-path`. +- **Status**: The HTTP status code for the redirect. + - `308`: Permanent redirect. Use this for content that has moved permanently. This is the default status. + - `307`: Temporary redirect. Use this when the move is temporary. + + + Redirects menu in the editor. + Redirects menu in the editor. + + +To add a redirect: +1. Click **Add redirect** +2. Enter the source and destination. +3. Click **Save**. + +To edit or remove an existing redirect: +1. Hover over the redirect. +2. Click the pencil icon to edit or the trash icon to remove. + ## Additional page behaviors - **404 pages**: Customize 404 pages and set up redirect behavior. diff --git a/images/editor/redirects-dark.png b/images/editor/redirects-dark.png new file mode 100644 index 000000000..077c8bf10 Binary files /dev/null and b/images/editor/redirects-dark.png differ diff --git a/images/editor/redirects-light.png b/images/editor/redirects-light.png new file mode 100644 index 000000000..294a6e9ea Binary files /dev/null and b/images/editor/redirects-light.png differ