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.
by Your Name · github.com/sadeq-yaqobi/wp-plugin-remote-media-replace
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/sadeq-yaqobi/wp-plugin-remote-media-replace/archive/refs/heads/main.zipFrom the readme
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