Skip to content
Plugin PantryPlugins

Plugins / Pantry Redirects

A redirect list you can read at a glance and a 404 log that shows what to fix. Add exact-path redirects, see how often they fire, and turn a logged 404 into a redirect with one click. Import and export as CSV.

Compared with the popular plugins

The Pantry Redirects settings screen in the WordPress admin, at Plugin Pantry > Redirects.

What it does

  • Redirect list with source path, target URL, type (301, 302, 307), enabled switch and hit count
  • Exact path matching that ignores trailing slashes and, optionally, query strings
  • Validation that rejects redirect loops, self-redirects and duplicate sources
  • 404 log of the last 200 unique paths with hit count and last-seen time, no visitor data stored
  • One-click redirect from any 404 row, and one-click clear of the log
  • CSV import and export of the redirect list
  • Two custom tables, removed on uninstall

What it does not do

  • No regular-expression redirects
  • No automatic redirect when a slug changes
  • No visitor tracking: no IP addresses, no user agents, no referrers stored
  • No external requests

Measured footprint

Zip size
37 KB
Lines of PHP
3,248
Options
pantry_redirects_settings, pantry_redirects_db_version
Post meta
none
Custom tables
{prefix}pantry_redirects_rules, {prefix}pantry_redirects_log
Post types
none
Cron events
none
Transients
none
Admin assets
includes/core/assets/pantry-admin.css on Tools > Redirects only, includes/core/assets/pantry-admin.js on Tools > Redirects only
Front-end assets
none
External requests
none
Measured on
2026-09-12

Compatibility

WordPress
6.4 or newer, tested to 7.1
PHP
8.1 or newer
Where it lives
Plugin Pantry > Redirects
Licence
GPLv2 or later

Every setting on the Pantry Redirects screen and what each one does, with the hooks it publishes: the same text that ships in the plugin README.

  • Regular-expression and wildcard rules
  • Automatic redirects when a permalink changes
  • Scheduled log clean-up and email digests

These modules ship in Pantry Pro now. None of this is in the free plugin, and none of it is switched off inside it: Pro is a separate plugin, and one key switches on every module whose free plugin is active.

Read the module documentation

Changelog

All notable changes to Pantry Redirects are recorded here. The format follows Keep a Changelog and the project uses semantic versioning.

1.1.1 - 2026-09-12

Fixed
  • The Settings tab printed "Settings saved." twice after a save: the shared core prints that notice itself, and the tab printed it again.

1.1.0 - 2026-09-12

  • Added a kind column to the rules table, defaulting to exact. Every read this plugin makes is limited to that kind, so an add-on can keep rules of another kind in the same table and have their hits counted the same way.
  • Added the pantry_redirects_pre_match filter, which runs on template_redirect before the exact lookup and may answer with a rule.
  • Added the pantry_redirects_settings_after action at the end of the Settings tab, so an add-on can put its own section on this plugin's screen.
  • The duplicate check when saving a redirect now looks at rules of every kind, because the source column is unique across the whole table.
  • No change to how redirects behave.

1.0.0 - 2026-09-12

  • First release.
  • Redirect list with source path, target, type (301, 302, 307), an enabled switch, a hit count and the time of the last hit.
  • Exact path matching that ignores trailing slashes and letter case, with an option to ignore query strings.
  • Validation that rejects an empty or home-page source, a bad target, a duplicate source, a self-redirect and a redirect loop.
  • 404 log of the most recently seen unique paths with a hit count and the time last seen. No IP addresses, user agents or referrers are stored.
  • Create redirect from any logged 404 row, delete single rows, and clear the whole log.
  • CSV import and export of the redirect list.
  • Two custom tables, both dropped on uninstall.