A WordPress plugin that allows you to replace media URLs with a configured domain to proxy images from a live site.
- Replace media URLs in post content
- Replace attachment URLs
- Replace URLs in image srcsets
- Settings page to configure the proxy domain
- Install and activate the plugin in WordPress
- Go to Settings > Media URL Proxy
- Enter the domain you want to use for proxying media files (e.g., https://your-production-site.com)
- Save the settings
The plugin will automatically replace any media URLs in your content with the configured domain. For example:
- From: https://your-local-site.local/wp-content/uploads/2024/03/cat.jpg
- To: https://your-production-site.com/wp-content/uploads/2024/03/cat.jpg
This allows you to serve images from a production domain while using a local development environment.
Once configured, the plugin will transform image tags like:
<img src="https://your-local-site.local/wp-content/uploads/2024/03/cat.jpg" alt="Cat">To:
<img src="https://your-production-site.com/wp-content/uploads/2024/03/cat.jpg" alt="Cat">This plugin was created to help with WordPress development when working with local environments that need to access media from a live site.