=== Pantry Redirects ===
Contributors: pluginpantry
Tags: redirects
Requires at least: 6.4
Tested up to: 7.1
Stable tag: 1.0.0
Requires PHP: 8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

301 and 302 redirects with a 404 log.

== Description ==

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.

Pantry Redirects is built to the Pantry Standard, a public document that fixes what every Plugin Pantry plugin may and may not do: https://thepluginpantry.com/standard

= 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

== Pro add-on ==

A separate Pantry Pro add-on is planned. It will extend this plugin with:

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

Nothing in this free plugin is locked or limited. It is complete for its scope.

== Installation ==

1. Upload the plugin folder to /wp-content/plugins/ or install it from the Plugins screen.
2. Activate it.
3. Open Plugin Pantry > Redirects and set it up.

== Frequently Asked Questions ==

= Does the free plugin expire or nag? =

No. It keeps working forever and never shows a sales notice.

= Does it send any data anywhere? =

No. It makes no external requests.

= Where do I report a bug? =

https://thepluginpantry.com/support

== Changelog ==

= 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.
