=== Flux Redirect ===
Contributors: utsavsinghrathour
Tags: redirect, 404, broken links, seo, regex
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 3.8.0
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Monitor 404 requests and create redirects with regex support, post search, and smart destination suggestions.

== Description ==

Flux Redirect is a lightweight redirect manager for site owners who want to turn broken links into useful redirects.

Features include:

* Automatic 404 path tracking.
* Manual redirect creation from the WordPress admin.
* 301, 302, 307, and 308 redirect status codes.
* Optional regex source rules.
* Post and page destination search.
* Suggested destinations based on similar post and page slugs.
* Dashboard stats for tracked 404s, configured redirects, hits, regex rules, and ignored records.
* Optional email notifications when a new broken link is discovered.
* Ignore and delete controls for unwanted 404 records.

Flux Redirect does not call external services and does not collect personal data.

== Installation ==

1. Upload the `flux-redirect` folder to the `/wp-content/plugins/` directory, or install it from the WordPress Plugins screen.
2. Activate the plugin through the Plugins screen in WordPress.
3. Go to Flux Redirect in the WordPress admin menu.
4. Add redirects manually or let the plugin collect 404 requests automatically.

== Frequently Asked Questions ==

= Can I redirect to another domain? =

Yes. Administrators can save full HTTP or HTTPS destination URLs. The plugin uses WordPress safe redirect handling and only permits the saved destination host for the active redirect.

= Does Flux Redirect support regex rules? =

Yes. Enable the Regex source option when adding or editing a redirect. Invalid regular expressions are rejected before saving or redirecting.

= Does it track every visitor? =

No. Flux Redirect stores the requested 404 path and a hit count. It does not store IP addresses, user agents, or personal profiles.

== Screenshots ==

1. Redirect manager with 404 tracking, smart suggestions, and manual redirect creation.

== Changelog ==

= 3.8.0 =

* Split the plugin into focused include files for easier maintenance.
* Added dashboard stats cards.
* Added email notification settings for newly discovered broken links.
* Tightened admin table styling so row controls fit better on one line.

= 3.7.0 =

* Added manual redirect creation.
* Added ignore and delete actions for 404 records.
* Added 307 and 308 redirect status options.
* Hardened sanitization, escaping, nonce checks, capability checks, SQL usage, and redirect handling for WordPress.org submission readiness.
* Moved admin JavaScript and CSS into enqueued asset files.

= 3.6 =

* Initial redirect manager with 404 monitoring, regex redirects, suggestions, and AJAX post search.
