Setup HTTP Status Code Redirects from within the Kirby Panel
Switch branches/tags
Nothing to show
Clone or download
bnomei redirects did not work for non existing pages anymore
Signed-off-by: Bruno Meilick <b@bnomei.com>

#1 fixed by _Sebastian Aschenbach_
Latest commit b25bb9b Dec 7, 2018

README.md

Kirby 3 Redirects

GitHub release License Kirby Version

Setup HTTP Status Code Redirects from within the Kirby Panel.

Commerical Usage

This plugin is free but if you use it in a commercial project please consider to

Setup

Add the plugin-redirects section to your site.yml and add redirects in the panel.

site.yml

sections:
  # ...other sections
  redirects:
    extends: plugin-redirects

Since v1.1.0 the plugin will register itself with a route:before-hook and take care of the redirecting automatically. Many thanks to Sebastian Aschenbach for suggesting this solution.

Settings

All settings require bnomei.redirects. as prefix.

code

  • default: 301

map

  • default: A closure to get the structure from site.txt. Define you own if you want the section to be in a different blueprint or skip the blueprint and just use code.

Disclaimer

This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.

License

MIT

It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.

Credits

This plugins is similar yet way less powerful than K2 version of