Redirects

The [redirects] table is used to redirect a location to a destination; see redirects for more information.

We recommend using a leading and trailing slash for the source location as shown below:

[redirects]
"/posts/" = "/posts/1/"

The source location should be a relative path but the destination may be an absolute URL:

[redirects]
"/posts/" = "https://blog.example.com/posts/"

Back to Settings