=== Fnap Links Redirector ===
Contributors: fnap
Tags: links redirector, redirect, seo
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 1.0
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.html

A comprehensive tool redirect links across your WordPress site using CSV files

== Description ==

Fnap Link Redirector is a powerful WordPress plugin that helps you manage and update links across your entire website. Perfect for site migrations, rebranding, or bulk link updates.

= Features =

* **Bulk Link Replacement**: Upload a CSV file with old and new URLs to replace links across your entire site
* **Preview Mode**: See what will be changed before applying modifications
* **URL Variants**: Automatically handles http/https, www/non-www, and trailing slash variations
* **Deep Scanning**: Searches links in:
    * Post content and meta fields
    * Pages and custom post types
    * Categories and tags
    * Navigation menus
    * Widgets
    * Theme settings
    * Site options
    * Comments
* **FAQ Block Protection**: Identifies and reports links in FAQ blocks without modifying them
* **Detailed Reports**: Get comprehensive reports showing exactly where each link was found and replaced
* **Safe Operations**: Preview changes before applying them
* **Batch Processing**: Handles large sites efficiently with configurable batch sizes

= Use Cases =

* Migrating from HTTP to HTTPS
* Changing domain names
* Updating affiliate links
* Fixing broken internal links
* Rebranding URLs
* Consolidating multiple domains

= How It Works =

1. **Replace Links**: Upload a CSV file with two columns (old URL, new URL)
2. **Configure Options**: Choose delimiter, enable variants, set batch size
3. **Preview or Apply**: Preview changes first, then apply when ready
4. **Review Report**: See detailed reports of all changes made

= CSV Format =

Your CSV file should have two columns:
* Column A: Old URL
* Column B: New URL

Example:
```
http://oldsite.com,https://newsite.com
http://example.com/old-page,https://example.com/new-page
```

= Special Features =

* **Delete Links**: Use "404" or "delete" as the new URL to remove link tags while keeping the text
* **Custom Meta Support**: Handles custom meta fields including serialized data
* **Gutenberg Compatible**: Works with Gutenberg blocks
* **ACF Compatible**: Supports Advanced Custom Fields
* **Multilingual Ready**: Translation-ready with text domain support

== Installation ==

= Automatic Installation =

1. Log in to your WordPress admin panel
2. Navigate to Plugins > Add New
3. Search for "Fnap Links Redirector"
4. Click "Install Now" and then "Activate"

= Manual Installation =

1. Download the plugin ZIP file
2. Log in to your WordPress admin panel
3. Navigate to Plugins > Add New > Upload Plugin
4. Choose the ZIP file and click "Install Now"
5. Activate the plugin

= After Activation =

1. Go to Tools > Replace Links (CSV) to start replacing links
2. Go to Tools > Scan Links to scan for specific URLs

== Frequently Asked Questions ==

= Does this plugin work with all page builders? =

Yes, the plugin works at the database level and handles content from all page builders, including Elementor, Divi, WPBakery, and others.

= Will this break my site? =

The plugin includes a preview mode that lets you see what will be changed before applying modifications. We recommend:
1. Always backup your database before making changes
2. Use preview mode first
3. Test on a staging site if possible

= Can I undo changes? =

The plugin does not include an undo feature. Always backup your database before making changes, so you can restore if needed.

= What happens to links in FAQ blocks? =

Links in FAQ blocks (Gutenberg FAQ blocks) are identified and reported but not automatically changed. This is a safety feature to preserve structured data.

= Does it work with serialized data? =

Yes, the plugin intelligently handles serialized data in post meta and options.

= Can I replace multiple links at once? =

Yes, simply add multiple rows to your CSV file. Each row represents one old→new URL mapping.

= What if I want to remove links entirely? =

Use "404" or "delete" as the new URL in your CSV file. This will remove the link tag but keep the anchor text.

= Does it handle URL variations? =

Yes! Enable the "Apply Variants" option to automatically handle:
* http vs https
* www vs non-www
* With/without trailing slash

== Changelog ==

= 1.0 =
* Initial release
* Bulk link replacement via CSV
* Deep link scanning across all site content
* Preview mode
* URL variant handling
* FAQ block protection
* Detailed reporting
* Support for custom post types and meta fields

== Support ==

For support, please visit the [plugin support forum](https://wordpress.org/support/plugin/fnap-link-redirector/) or contact us at support@example.com.

== Privacy Policy ==

This plugin does not collect, store, or transmit any personal data. All operations are performed locally on your WordPress installation.

== Credits ==

Developed with ❤️ for the WordPress community.