Kirby Slash Redirect - From slash to no slash

https://github.com/jenstornell/slash-redirect

Kirby Slash Redirect

Redirect ending slash to no slash.

http://example.com/my/page/

…will be redirected to…

http://example.com/my/page

It can be good to not confuse users and search engines.

Install

  1. Add slash-redirect folder to site/plugins/.

Panel and patterns

It automatically skips redirect for the panel and the patterns plugin.

If you have them on another location than the default you need to change the options.

Change uri for panel and patterns

c::set('plugin.slash.redirect.panel', 'panel');
c::get('plugin.slash.redirect.patterns', 'patterns');

Requirements

Kirby 2.3

License

MIT

Changelog

0.1

  • Initial release