Last active
March 13, 2016 00:16
-
-
Save yoren/a2572ac7cecc04097f4d to your computer and use it in GitHub Desktop.
Proxy WP content images for your local server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: https://www.chriswiegman.com/2016/02/getting-media-on-your-local-wordpress-site/ | |
// But if you need an nginx flavor | |
// Put this in your server block | |
rewrite ^/wp-content/uploads(.+)$ http://myurl.com/wp-content/uploads$1 last; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment