=== Linkrail ===
Contributors: devshujon
Tags: redirect, redirection, 301, 404, seo
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Manage 301/302 redirects with regex and wildcard support, hide your wp-login URL, and auto-fix 404 broken links for SEO.

== Description ==

**Linkrail** is a fast, lightweight URL redirect and link-repair plugin for WordPress. Built for sites that need real redirect power without the bloat — unlimited redirects, regex and wildcard matching, automatic 404 detection, login URL hiding, and a clean admin UI that stays out of your way.

= Why Linkrail? =

Most redirect plugins do one thing. Linkrail bundles three things every serious WordPress site actually needs:

1. **Redirect Manager** — 301, 302, 307, 308, and 410 Gone redirects with exact, prefix, regex, and wildcard matching.
2. **Admin URL Security** — hide your `/wp-login.php` behind a custom slug to stop brute-force bots cold.
3. **SEO 404 Broken Link Fixer** — auto-detects 404s across your site and suggests or auto-creates redirects to recover lost traffic.

All features are **100% free**. No license keys, no upsells, no feature gating.

= Core Features =

* Unlimited redirects (301, 302, 307, 308, 410 Gone)
* Match types: exact, prefix, regex, wildcard
* Hide wp-login behind a custom slug with IP whitelist and emergency recovery URL
* Automatic 404 broken link detection and smart redirect suggestions
* Full visit logs per redirect with hit counters
* CSV import and export
* Clean, native-feeling admin UI
* Translation-ready (text domain: `linkrail`)
* No external services — everything runs locally

= Built for Performance =

* Cached lookups via WordPress object cache
* Indexed database tables for sub-millisecond matching
* Runs on `template_redirect` — no interference with other plugins
* Zero frontend JS, zero frontend CSS

= Privacy =

Linkrail stores redirect rules, visit hit counts, and 404 log entries in your own WordPress database. Nothing is sent to external servers. Bot user-agents are ignored by default to keep logs clean.

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/linkrail/`, or install through the WordPress Plugins screen.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Go to the **Linkrail** menu in your admin sidebar to create your first redirect.

== Frequently Asked Questions ==

= Does this replace the Redirection plugin? =

Linkrail is an independent plugin — it is **not affiliated with or endorsed by** the Redirection plugin or any other existing redirect plugin. It is a separate, standalone tool built from scratch.

= Will hiding wp-login lock me out? =

No. Linkrail provides an emergency recovery URL and IP whitelist so you always have a way back in. The custom slug is also saved in plain text in your database so it can be recovered via phpMyAdmin if needed.

= Does it slow down my site? =

No. Redirects are cached, lookups are indexed, and the plugin only hooks into `template_redirect`. On modern hosting the overhead is measurable in microseconds.

= Can I import redirects from another plugin? =

Yes, via CSV import. Export from your current plugin as CSV and import into Linkrail.

= Is regex really supported? =

Yes. Full PCRE regex with capture group support in the target URL.

== Screenshots ==

1. Redirect manager with list, filters, and bulk actions.
2. Admin URL security settings with custom slug and IP whitelist.
3. 404 broken link detector with one-click fix suggestions.
4. Visit logs and redirect stats.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
