Redirect local WordPress development website images to live site

For the times when you don’t want to download thousands of images just to sync the live site with your local WordPress development environment.

Works well in conjunction with Migrate DB Pro (which also has an option to sync images too if you really want).

[gist id=fdf6db1636099a016c75]