Configure links and redirects for your site
Redirects
The redirects
object allows you to redirect traffic from one path to another. You can also use regex
within redirects.
docs.yml
By default, the redirects implement temporary (302) redirects. If you would like to implement permanent (301) redirects, you can set permanent: true
.
docs.yml
Subpaths
If your docs are hosted on a subpath (like buildwithfern.com/learn
), be sure to include the subpath in the redirect.
Links
You can add a link to an external page within your sidebar navigation with the following configuration:
docs.yml