Kirby3 Redirects - setup HTTP status code redirects from within the panel

I am creating posts for my plugins to make it easier to find them using the forum search and not just the docs search.

Kirby 3 Redirects can handle Request-URIs like projects?id=123 , project/cool.html and send Response-URIs like https://exter.nal . This makes it the ideal choice when porting a non Kirby project (like wordpress). You can assign HTTP Status Codes like 302 to each redirect individually.

site/blueprints/site.yml

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

v1.10

  • supports regex with named groups and placeholders
  • stays performance even with hundreds of redirects
  • since its not tracking any data it does not slow down your page loading time

Regex example

from

blog/(?P<year>\d{4})_(?P<slug>.*)\.html

to

/blog/$year/$slug
1 Like

Hi Bruno,

I think I made a mistake trying to uninstall the plugin (never done this before). This is locally.

I deleted the folder before deleting the individual redirect entries I’d made. Then I noticed that the redirects were still there, so I restored the plugin folder and manually deleted all redirect entries, however the redirects remain, and I don’t know how to remove them now, as I don’t see them in .htaccess.

Thanks for any help.

can you please share the version of the plugin you are using as well as any config options (if you setup custome ones). thanks

1 Like

Ah, I forgot to update this post: I found a version of my Kirby installation from before I messed things up, so all good now, thanks for your time regardless, and will remember to add those details in the future. :pray:t3:

Hey Bruno … is the 5.0.0 version of the plugin still compatible with K4?

I can’t seem to find any specific release notes regarding changes between 4.3.0 and 5.0.0.

it should run on k4. i havent had the time to create a proper changelog yet. here is a short summary

features

  • adds hooks for custom tracking
  • made readme easier

performance

  • changed from files to generic cache for valid route storage
  • flushes cache smarter (like pages cache)

codebase

  • it has php 8.2 as base requirement (like k5)
  • has been refactored to run tests with pest against k5-alpha4
  • passes phpstan level 9

Thank for the details.

I’ll test it in my current development environment and report back.

I am please to report that the version 5.0.0 plugin works perfectly under K4 (4.5.0).

1 Like