=== jassn 404 Monitor, Redirection, Custom 404 Page ===
Contributors: jass345
Tags: 404 logs, 404 monitor, custom 404, error page, redirection
Requires at least: 5.0
Tested up to: 7.1
Stable tag: 1.0.0
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Monitor 404 errors, manage redirects, and show a custom 404 page with multiple templates.

== Description ==

**jassn 404 Monitor** is a complete solution to track and manage your site's 404 errors. It logs broken links, lets you create redirects, and provides a custom 404 page with three built-in templates.

= Features =

* **404 Error Logging** – Every 404 request is logged with:
  * Requested URL
  * Referrer
  * Device (browser or mobile/tablet)
  * Operating System
  * Date/time (dd/mm/yyyy hh:mm:ss)
  * Hit count (grouped by URL per day)

* **Redirection Manager** – Add, delete, and toggle redirects:
  * Support for 301 (permanent) and 302 (temporary) redirects
  * Activate/deactivate redirects without deleting them
  * Simple interface for source (relative URL) and target (full URL)

* **Custom 404 Page** – Replace the default theme 404 page with your own:
  * Choose from three built-in templates: Default, Modern, and Minimal
  * Optionally use the content of any existing WordPress page as the 404 body

* **Green Admin Theme** – All admin panels are responsive on desktop, tablet, and mobile.

* **Secure & Developer-Friendly** – All inputs are sanitised, escaped, and nonce-verified.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`, or install directly via the WordPress plugin repository.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Go to the new **404 Monitor** menu in the WordPress admin sidebar to configure.

== Frequently Asked Questions ==

= Does this plugin work with caching plugins? =

Yes. 404 logging and redirects are processed before the cache is served, so it works with most caching plugins.

= Can I use my own design for the 404 page? =

You can choose from the three built-in templates (Default, Modern, Minimal). Each template can be styled further using the included CSS file.

= How do I see the 404 logs? =

Go to **404 Monitor → 404 Logs** in your admin menu. You can view all logged errors, see device and OS details, and clear the logs.

= Does the plugin store IP addresses? =

The plugin logs IP addresses for diagnostic purposes. You can modify the logger to anonymise or disable IP logging if needed.

== Screenshots ==

1. Dashboard – Overview of total 404 errors, active redirects, and custom 404 status.
2. 404 Logs – Detailed log with URL, referer, device, OS, and last seen date.
3. Redirects – Add new redirects and manage existing ones with activate/deactivate toggles.
4. Custom 404 Settings – Enable/disable custom 404, choose template, and select a page for content.
5. Front-end 404 Page – Example of a custom 404 page using the Modern template.

== Changelog ==

= 1.0.0 =
* Initial release.
* 404 logging, redirect manager, and custom 404 page.
* Three built-in templates (Default, Modern, Minimal).
