Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/sadeq-yaqobi/wp-plugin-remote-media-replace/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Remote Media Replacer
A WordPress plugin that intelligently replaces local media URLs with remote ones when available, with automatic fallback to local images if the remote version doesn't exist.
Description
Remote Media Replacer is designed for WordPress developers and site administrators who work with multiple environments (local, staging, production) and need to seamlessly handle media files across different servers. The plugin automatically detects when you're on a local environment and attempts to serve images from a remote server, falling back to local images when the remote version isn't available.
Features
- Smart URL Replacement: Automatically replaces local upload URLs with remote ones
- Fallback Protection: Falls back to local images if remote images don't exist
- Local Environment Detection: Only activates on localhost/127.0.0.1 environments
- Performance Optimized: Uses HTTP HEAD requests to check image existence with minimal overhead
- Easy Configuration: Simple admin interface for setting remote URL
- Non-Destructive: Doesn't modify your database or actual file paths
Installation
1. Download the plugin files
2. Upload the plugin folder to your /wp-content/plug