=== Redirect Cleanup ===
Contributors: aleksandrsamokhin, freemius
Tags: redirects, yoast redirects, redirect chains, seo optimization, url redirects
Donate link: https://aleksandrsamokhin.com
Requires at least: 5.0
Requires PHP: 7.4
Tested up to: 6.9
Stable tag: 1.0.8
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Redirect Cleanup is a powerful tool that helps you identify and fix redirect issues in your WordPress site, specifically designed to work with Yoast SEO Premium redirects.

== Description ==

= Clean up your redirects and improve your site's SEO performance. =

Redirect Cleanup scans your WordPress site for problematic redirects, including homepage redirects and redirect chains that can negatively impact your SEO and user experience. The plugin provides an intuitive admin interface and powerful command-line tools to help you identify and fix these issues efficiently.

= WHY USE REDIRECT CLEANUP? =
Redirect chains and homepage redirects can hurt your SEO rankings and create a poor user experience. Redirect Cleanup makes it easy to identify and fix these issues, whether you have a few redirects or thousands. The plugin works seamlessly with Yoast SEO Premium and provides both a user-friendly admin interface and powerful WP-CLI commands for bulk operations.

= REDIRECT CLEANUP FEATURES =
1. **Scan for Homepage Redirects** - Automatically detect redirects that point to your homepage in your posts and pages.
2. **Remove Redirect URLs from Content** - Clean up redirect URLs embedded in your post content.
3. **Detect Redirect Chains** - Identify and fix redirect chains that create unnecessary hops.
4. **Detect Redirect Loops** - Find and flag redirect loops that can cause infinite redirects.
5. **Modern Admin Interface** - Beautiful React-based admin interface for easy management.
6. **WP-CLI Support** - Powerful command-line tools for bulk processing and automation.
8. **Batch Processing** - Process large numbers of posts efficiently with batch operations.
9. **Dry Run Mode** - Preview changes before applying them to your site.
10. **Multiple Post Type Support** - Scan and process posts, pages, and custom post types.

= COPYRIGHT =
Redirect Cleanup, Copyright 2026 Aleksandr Samokhin

== Installation ==

1. Activate the plugin through the 'Plugins' screen in WordPress.
3. Navigate to Tools -> Redirect Cleanup to access the admin interface.
4. Click "Scan for Redirects" to identify redirect issues on your site.
5. Review the results and click "Process" to fix the issues.

== Frequently Asked Questions ==

= Does it require Yoast SEO Premium? =
Yes, currently Redirect Cleanup only works with Yoast SEO Premium as it reads redirects from Yoast's redirect database.

= Will it break my existing redirects? =
No, Redirect Cleanup only fixes problematic redirects (chains and loops) and removes redirect URLs from your post content. It doesn't modify working redirects.

= Can I preview changes before applying them? =
Yes, the plugin includes a dry-run mode that shows you what changes will be made without actually updating your site. This is available both in the admin interface and WP-CLI commands.

= Does it work with custom post types? =
Yes, you can select which post types to scan and process, including custom post types.

= Can I use it via command line? =
Yes, Redirect Cleanup includes full WP-CLI support. Use `wp redirects` to see available commands.

== Screenshots ==

1. Redirect Cleanup admin interface showing scan results.
2. Processing homepage redirects with batch operations.
3. Redirect chain detection and fixing interface.
4. WP-CLI command examples.

== Changelog ==

Version 1.0.8 - January 29, 2026
- Update: is_org_compliant Freemius parameter to true

Version 1.0.7 - January 28, 2026
- Update: Remove clean redirect URL logic from free version

Version 1.0.6 - January 28, 2026
- Update: Remove 100 URL's limit logic
- Update: Clean redirect URL's is a premium feature

Version 1.0.5 - January 22, 2026
- Fix: Make free plugin wordpress.org compliant

Version 1.0.4 - January 7, 2026
- Initial release