`FASTN.ftd` example that uses `fastn.redirects`
-- import: fastn
-- fastn.package: redirect-example
-- fastn.redirects:
/ftd/kernel/: /kernel/
/discord/: https://discord.gg/eNXVBMq4xt
The links which needs to be redirected somewhere has to be listed down in the
body section of `fastn.redirects` as `key-value` tuples in the format
`: `.
In the above example, the url `/ftd/kernel/` will be redirected to `/kernel/`.
Similarly, visiting `/discord/` will redirect to the official `fastn` discord
server [https://discord.gg/eNXVBMq4xt](https://discord.gg/eNXVBMq4xt).
Dynamic Redirect
You can also conditionally redirect from any web page, check out
[`ftd.redirect`](/ftd/redirect/).