=== GlobalDev Redirect Manager ===
Contributors: globaldevitus
Tags: redirect, 301 redirect, 404, redirects, seo
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Professional redirect management with 404 logging, hit tracking, CSV import/export, and a polished WordPress dashboard.

== Description ==

GlobalDev Redirect Manager is a local, privacy-friendly redirect manager for WordPress.

It helps site administrators create and manage redirects without relying on external services or account registration.

= Core features =

* 301 permanent redirects.
* 302 temporary redirects.
* 307 temporary redirects.
* 410 Gone responses.
* Exact-match source URL rules.
* Redirect hit counters.
* Last-hit timestamps.
* Enable or disable individual rules.
* Search and filter redirects.
* Bulk enable, disable, or delete.
* 404 logging.
* Create a redirect directly from a 404 entry.
* CSV import and export.
* Optional query-string preservation.
* Configurable 404 log retention.
* Loop protection for identical internal source and destination URLs.
* Professional WordPress admin dashboard.

All plugin data is stored locally in the WordPress database.

The plugin does not use external services, telemetry, tracking, remote code, or required account registration.

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/globaldev-redirect-manager/`, or install the plugin through the WordPress Plugins screen.
2. Activate the plugin.
3. Open **Redirect Manager** in the WordPress admin menu.
4. Add your first redirect rule.

== Frequently Asked Questions ==

= Does the plugin send data to an external service? =

No. Redirect rules, hit counts, settings, and 404 logs remain on your WordPress site.

= What redirect codes are supported? =

The first release supports 301, 302, 307, and 410.

= Can I import existing redirects? =

Yes. Use the Import / Export screen with a CSV file containing these columns:

`source_url,target_url,status_code,is_active`

= Does it support wildcard or regular-expression redirects? =

Version 1.0.0 focuses on predictable exact-match redirects. Wildcard and regex matching are intentionally not included in the first release.

= Does it log visitor personal data? =

The 404 log stores the requested path, request count, timestamps, referrer URL when available, and browser user-agent string. It does not store IP addresses.

== Source Code ==

The JavaScript and CSS distributed with this plugin are provided directly in human-readable source form.

No minification, bundling, transpilation, or external build process is required to review or modify the distributed JavaScript and CSS files.

== Screenshots ==

1. Professional redirect dashboard.
2. Redirect management table.
3. Add or edit redirect form.
4. 404 log with one-click redirect creation.
5. Import/export and settings screens.

== Changelog ==

= 1.0.5 =
* Replaced compressed admin JavaScript with human-readable source code.
* Reformatted admin CSS into human-readable source code.
* Documented that no build/minification step is required for distributed assets.

= 1.0.4 =
* Documented intentional direct database access to the plugin's dedicated custom tables.
* Added targeted WordPress Coding Standards annotations for custom-table operations.
* No functional behavior changed.

= 1.0.3 =
* Removed dynamic SQL placeholder construction from bulk actions.
* Added explicit nonce-analysis annotations for read-only admin query parameters.
* Finalized WordPress Plugin Check compatibility improvements.

= 1.0.2 =
* Fixed remaining Plugin Check SQL preparation errors.
* Improved request/input sanitization.
* Removed direct filesystem calls from CSV export.
* Improved WordPress admin notice placement.

= 1.0.1 =
* Improved custom-table query preparation and CSV handling for WordPress.org code-quality checks.
* Added a dedicated admin notice area below the plugin header.

= 1.0.0 =
* Initial release.
* Added 301, 302, 307, and 410 rules.
* Added redirect hit tracking.
* Added 404 logging.
* Added CSV import/export.
* Added bulk actions and search.
* Added professional admin dashboard.
