All Projects → bnomei → kirby3-redirects

bnomei / kirby3-redirects

Licence: MIT License
Setup HTTP Status Code Redirects from within the Kirby Panel

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to kirby3-redirects

django-redirects
↪️ ✅ redirects as they should be, with full control.
Stars: ✭ 32 (+128.57%)
Mutual labels:  redirects, redirect, 301, 302, 307, 308
kirby3-bolt
Kirby 3 Plugin for a fast Page lookup even in big content trees
Stars: ✭ 24 (+71.43%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
kirby3-ray
Helper tool that enables ray on all the extendable methods.
Stars: ✭ 17 (+21.43%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
kirby-minify-html
Enable minify HTML output for Kirby 3
Stars: ✭ 27 (+92.86%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
k3-image-clip
Visually crop images with a handy image editor directly inside the panel
Stars: ✭ 38 (+171.43%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
kirby3-doctor
Plugin to check health of your CMS installation
Stars: ✭ 19 (+35.71%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
Skybrud.Umbraco.Redirects
Redirects manager for Umbraco.
Stars: ✭ 31 (+121.43%)
Mutual labels:  redirects, 301, 307
kirby3-instagram
Kirby 3 Plugin to call Instagram (or any other) API Endpoints
Stars: ✭ 20 (+42.86%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
k3-panel-view-extended
Quick fix for some missing features in the panel
Stars: ✭ 24 (+71.43%)
Mutual labels:  kirby3, kirby3-plugin
reporter-for-kirby
Gather feedback directly out of the Panel!
Stars: ✭ 27 (+92.86%)
Mutual labels:  kirby3, kirby3-plugin
random-redirect
Page that redirects to a random page that offers the service you are looking for
Stars: ✭ 54 (+285.71%)
Mutual labels:  redirects, redirect
komments
A Kirby 3 comment plugin
Stars: ✭ 28 (+100%)
Mutual labels:  kirby3, kirby3-plugin
Odyssey
A piece of software that shows a traceroute of a URL redirect path
Stars: ✭ 41 (+192.86%)
Mutual labels:  redirects, redirect
kirby3-similar
Find similar collection items based on similarity
Stars: ✭ 16 (+14.29%)
Mutual labels:  kirby3, kirby3-plugin
mongoose-slug-plugin
Slugs for Mongoose with history and i18n support (uses speakingurl by default, but you can use any slug library such as limax, slugify, mollusc, or slugme)
Stars: ✭ 21 (+50%)
Mutual labels:  redirect, 301
openredir
redirect file open operations via LD_PRELOAD
Stars: ✭ 23 (+64.29%)
Mutual labels:  redirect
httriri
HTTRiRi - HTTP Status Codes as Portrayed by Rihanna GIFs ✨💄
Stars: ✭ 49 (+250%)
Mutual labels:  status-codes
LandscapeView
Animated landscape generator
Stars: ✭ 89 (+535.71%)
Mutual labels:  header
404-to-301
Manage 404 errors on your WordPress site and redirect them to any pages using 301 redirect for SEO
Stars: ✭ 11 (-21.43%)
Mutual labels:  redirects
lambda-redirector
Redirect an entire website using AWS Lambda
Stars: ✭ 21 (+50%)
Mutual labels:  redirect

Kirby 3 Redirects

Release Downloads Build Status Coverage Status Maintainability Twitter

Setup HTTP Status Code Redirects from within the Kirby Panel.

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.

Similar Plugin

  • kirby-retour but it can only handle Kirby Routes. It is the better choice when updating a Kirby 2 project or creating a brand new Kirby 3 project.

Works well with

  • CSV Plugin to help you import and export data to the redirects structure.

Commercial Usage


Support open source!

This plugin is free but if you use it in a commercial project please consider to sponsor me or make a donation.
If my work helped you to make some cash it seems fair to me that I might get a little reward as well, right?

Be kind. Share a little. Thanks.

‐ Bruno
 
M O N E Y
Github sponsor Patreon Buy Me a Coffee Paypal dontation Hire me

Installation

  • unzip master.zip as folder site/plugins/kirby3-redirects or
  • git submodule add https://github.com/bnomei/kirby3-redirects.git site/plugins/kirby3-redirects or
  • composer require bnomei/kirby3-redirects

Setup

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

site.yml

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

If you need all http codes you can use extends: plugin-redirects instead which calls the api to retrieve them (once for each redirect). This is not advised if you have a lot of 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.

Site Methods

The site methods appendRedirects and removeRedirects allow you to programmatically change the redirects table (if stored in a Page/Site-Object).

// add single item
$success = site()->appendRedirects(
    ['fromuri'=>'/posts?id=1', 'touri'=>'/blog/1', 'code'=>301]
);

// add multiple items with nested array
$success = site()->appendRedirects([
    ['fromuri'=>'/posts?id=2', 'touri'=>'/blog/2', 'code'=>301],
    // ...
    ['fromuri'=>'/posts?id=999', 'touri'=>'/blog/999', 'code'=>301],
]);

// remove single item
$success = site()->removeRedirects(
    ['fromuri'=>'/posts?id=1', 'touri'=>'/blog/1']
);

// remove multiple items with nested array
$success = site()->removeRedirects([
    ['fromuri'=>'/posts?id=3', 'touri'=>'/blog/3'],
    ['fromuri'=>'/posts?id=5', 'touri'=>'/blog/5'],
    ['fromuri'=>'/posts?id=7', 'touri'=>'/blog/7'],
]);

Settings

bnomei.redirects. Default Description
code 301
querystring true do keep querystring in request URI. example: https://kirby3-plugins.bnomei.com/projects?id=12 => projects?id=12
map callback A closure to get the structure from content/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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].