=== Kaan Bulk Redirects === Contributors: kaan73 Donate link: https://www.patreon.com/korsantaksi Plugin URI: https://github.com/netsevdam/kaan-bulk-redirects Tags: redirect, 301 redirect, SEO, CSV, wildcard Requires at least: 5.0 Tested up to: 6.9 Stable tag: 1.4.5 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Manage 301 redirects in WordPress with ease. Bulk import/export via CSV, wildcard support, and domain-to-domain redirects for better SEO. == Description == **Kaan Bulk Redirects** is a lightweight, user-friendly WordPress plugin that helps you manage 301 redirects without any hassle. Whether you're migrating your site, restructuring URLs, or consolidating content, this plugin makes redirect management simple and efficient. = Why Use Kaan Bulk Redirects? = * **Save Time**: Import hundreds of redirects at once using CSV files * **Preserve SEO**: Proper 301 redirects maintain your search engine rankings * **No Database Bloat**: Efficient storage that won't slow down your site * **User-Friendly**: Clean, intuitive admin interface that anyone can use * **Flexible**: Support for wildcards, domain changes, and complex redirect patterns = Key Features = **πŸš€ Bulk Management** Add, edit, and remove multiple redirects directly from your WordPress admin panel. No need to edit .htaccess files or write complex rules. **πŸ“Š CSV Import/Export** Easily import hundreds of redirects from a CSV file. Export your current redirects for backup or migration to another site. **🎯 Wildcard Redirects** Redirect entire sections of your site with wildcard patterns. For example, redirect all pages under `/old-blog/*` to `/new-blog/` automatically. **🌐 Domain-to-Domain Redirects** Moving to a new domain? Redirect specific pages from your old domain to your new one with full URL support. **⚑ Lightweight & Fast** No bloated code, no unnecessary features. Just clean, efficient redirect management that won't slow down your site. **πŸ”’ Secure** Built with WordPress security best practices. All inputs are validated and sanitized to protect your site. = Perfect For = * **Site Migrations**: Moving to a new domain or hosting provider * **URL Restructuring**: Changing your permalink structure or reorganizing content * **Content Consolidation**: Merging multiple pages into one * **SEO Optimization**: Fixing broken links and maintaining link equity * **Multilingual Sites**: Redirecting between language versions * **E-commerce**: Managing product URL changes = How It Works = 1. **Add Redirects Manually**: Use the simple table interface to add old and new URLs 2. **Import from CSV**: Upload a CSV file with your redirect rules 3. **Use Wildcards**: Create pattern-based redirects for entire sections 4. **Export for Backup**: Download your redirects as a CSV file anytime All redirects are 301 (permanent) redirects, which is the SEO-friendly standard that tells search engines the page has permanently moved. = Example Use Cases = **Simple Redirect** Old URL: `/about-us/` New URL: `/about/` **Redirect to Homepage** Old URL: `/old-page/` New URL: `/` **Wildcard Redirect** Old URL: `/blog/2023/*` New URL: `/archive/2023/` Result: All pages under `/blog/2023/` redirect to `/archive/2023/` **Preserve Subpages with Wildcards** Old URL: `/old-category/*` New URL: `/new-category/$1` Result: `/old-category/page1/` β†’ `/new-category/page1/` **Domain Change** Old URL: `https://oldsite.com/page/` New URL: `https://newsite.com/page/` = Developer Friendly = * Clean, well-documented code * WordPress Coding Standards compliant * No external dependencies * Lightweight and efficient == Installation == = Automatic Installation = 1. Log in to your WordPress admin panel 2. Navigate to **Plugins > Add New** 3. Search for "Kaan Bulk Redirects" 4. Click **Install Now** and then **Activate** = Manual Installation = 1. Download the plugin ZIP file 2. Upload the `kaan-bulk-redirects` folder to `/wp-content/plugins/` 3. Activate the plugin through the **Plugins** menu in WordPress 4. Go to **Bulk Redirects** in the admin menu to start adding redirects = Getting Started = 1. Navigate to **Bulk Redirects** in your WordPress admin menu 2. Add your first redirect by entering the old URL and new URL 3. Click **Save Redirects** 4. Test the redirect by visiting the old URL == Frequently Asked Questions == = How do I add a redirect? = Go to **Bulk Redirects** in your admin menu, enter the old URL in the first column and the new URL in the second column, then click **Save Redirects**. = Can I redirect to my homepage? = Yes! Simply use `/` as the new URL to redirect any page to your homepage. = What is a wildcard redirect? = A wildcard redirect uses `*` to match multiple URLs. For example, `/old-blog/*` will match `/old-blog/post1/`, `/old-blog/post2/`, etc. = How do I preserve the subpage path in a wildcard redirect? = Use `$1` in your new URL. For example: Old URL: `/old/*` New URL: `/new/$1` This will redirect `/old/page/` to `/new/page/` = Can I import redirects from a CSV file? = Yes! Click the **Import CSV** button, select your CSV file (format: Old URL, New URL), and click **Import**. The plugin will process all redirects at once. = What CSV format should I use? = Your CSV should have two columns: "Old URL" and "New URL". See the example below: ``` Old URL,New URL /about-us/,/about/ /old-page/,/new-page/ /blog/*,/archive/ ``` = Can I export my redirects? = Yes! Click the **Export CSV** button to download all your current redirects as a CSV file. This is useful for backups or migrating to another site. = Does this work with custom post types? = Yes! The plugin works with any URL on your WordPress site, including custom post types, pages, posts, and custom URLs. = Will this affect my site's performance? = No. The plugin is extremely lightweight and only runs when a redirect is needed. It won't slow down your site. = Can I redirect from an external domain? = Yes! You can use full URLs (e.g., `https://mavitaksi.com/`) to redirect from external domains, as long as you have control over the old domain. = What happens if I have multiple redirects for the same URL? = The plugin will use the first matching redirect it finds. Make sure to avoid duplicate old URLs. = Can I redirect to an external site? = Yes! You can use full URLs as the new URL (e.g., `https://mavitaksi.com/contact/`). = Is this plugin compatible with other redirect plugins? = Yes, but we recommend using only one redirect plugin to avoid conflicts. If you're switching from another plugin, export your redirects first, then import them into Kaan Bulk Redirects. == Screenshots == 1. **Admin Interface** - Clean, simple table for managing redirects 2. **CSV Import/Export** - Bulk import and export functionality 3. **Wildcard Example** - Using wildcards to redirect entire sections 4. **Add Redirect** - Easy-to-use interface for adding new redirects == Changelog == = 1.4.5 = * Enhanced security with proper WordPress file handling (WP_Filesystem) * Improved input validation and sanitization * Fixed WordPress Coding Standards compliance issues * Added comprehensive inline documentation * Updated compatibility to WordPress 6.9 = 1.4.2 = * Fixed security issues with proper sanitization and validation * Improved file upload security * Proper script enqueueing * Complete code cleanup = 1.4.1 = * Enhanced security with dangerous URL detection * Added file size limits for CSV imports (5MB max) * Improved redirect validation * Added translation support = 1.4.0 = * Major security improvements * Added proper data sanitization and escaping * Fixed option name conflicts * Improved wildcard redirect handling = 1.3.1 = * Added wildcard redirect support * Improved CSV import/export functionality * Minor bug fixes and performance improvements = 1.2 = * Initial public release == Upgrade Notice == = 1.4.5 = Important security and compatibility update. Includes WordPress 6.9 support and enhanced file handling security. = 1.4.2 = Important security update. Includes comprehensive data sanitization and validation improvements. = 1.4.1 = Security enhancement update. Adds dangerous URL detection and improved file upload validation. = 1.4.0 = Security update. Fixes data sanitization issues and improves plugin stability. == Support == For support, feature requests, or bug reports, please visit: * [GitHub Repository](https://github.com/netsevdam/kaan-bulk-redirects) * [Support Forum](https://wordpress.org/support/plugin/kaan-bulk-redirects/) == Privacy == This plugin does not collect, store, or transmit any user data. All redirect rules are stored locally in your WordPress database. No external services are used. == Credits == Developed and maintained by [Kaan Hanoğlu](https://koctaksi.com/) == Additional Information == * **Lightweight**: No bloat, just essential redirect management * **Secure**: Built with WordPress security best practices * **SEO-Friendly**: Uses proper 301 redirects * **No External Dependencies**: Works standalone without requiring other plugins * **Server-Side**: All redirects execute server-side for maximum efficiency