Linko Media Path Mapper & Swapper
Are you tired of ugly, date-based WordPress upload URLs like /wp-content/uploads/2024/05/image.png?
Linko Media Path Mapper & Swapper is a powerful URL management suite that gives you complete control over how your media files are served. It is built around 3 core workflows designed for performance, SEO, and ease of use.
🎯 1. Clean & Custom Media Paths
Transform messy upload URLs into beautiful, human-readable paths.
* Change /wp-content/uploads/2024/05/report.pdf → /downloads/annual-report.pdf
* Optionally hide or show file extensions (e.g., /images/logo instead of /images/logo.png).
* Smart WebP Mapping: Automatically maps and serves .webp versions for modern browsers without altering your database.
* Deep Integration: Works flawlessly with standard WordPress galleries, ACF (Advanced Custom Fields), and page builders via our dual-layer filtering system.
🔄 2. Smart Media Replacement
Need to update an image or PDF but don’t want to change the URL or lose SEO rankings? * Replace the actual file on the server directly from the admin panel. * Keep or Update Dates: Choose to keep the original upload date (for SEO) or update it to the current date (to move it to a new month folder). * Rename on the Fly: Optionally use the newly uploaded file’s name while automatically updating all custom path mappings. * Bypasses CDN and cache issues seamlessly with built-in cache-busting.
🔀 3. Advanced Redirection Rules (301, 302, 404)
A lightweight, high-performance redirect manager built right into the plugin.
* Multi-Domain Support: Easily redirect traffic from an old domain (e.g., https://olddomain.com/blog-post) to your new site paths.
* Flexible Rules: Set up 301 (Permanent), 302 (Temporary), or 404 (Not Found) responses.
* Hit Tracking: See how many times a redirect rule has been triggered directly in the admin UI.
* Zero Conflict: Uses smart memory caching to handle thousands of rules without slowing down your website.
🔧 How It Works (Under the Hood)
Unlike basic redirect plugins, Linko Media Path Mapper & Swapper uses a safe “Dual-Layer” architecture:
* Layer 1: Intercepts URLs at the PHP data level (before HTML is generated) for zero performance overhead.
* Layer 2: Uses a highly optimized output buffer with regex extraction to catch hardcoded theme URLs (like WebP <picture> tags) without causing memory exhaustion.
