Redirecting
If you are using versions in your routes and are prefixing with the name of your project, you may want to set up redirects.
For example, if you anticipate large version changes and want seperate collections for each version, you might have the following url structure:
/docs/1.x
/docs/2.x
...
Great! But now /docs
links to a 404 page. To fix this, you can set up a Link (a redirect) page that points to the latest version.
For the case above, we'll add a new Link entry in the pages
collection:
- Enable
Link
in the Content Model section of your collection settings. - Go back and create a new entry, and choose Link from the options.
- Fill in the fields and choose your latest versions homepage from the entry selector.