Configure links and redirects for your site
Redirects
The redirects
object allows you to redirect traffic from one path to another. You can redirect exact paths or use dynamic patterns with regex
parameters like :slug
.
If your docs are hosted on a subpath (like buildwithfern.com/learn
), include the subpath in both the source and destination paths.
Parameters suffixed with an asterisk (*
) match zero or more path segments, capturing everything that follows in the URL. Use this when redirecting entire folder structures while preserving nested paths.
The path that you want to redirect from.
The path that you want to redirect to.
Toggle between permanent and temporary redirect (default false
). When true, the status code is 308. When false, the status code is 307.
Links
You can add a link to an external page within your sidebar navigation with the following configuration:
