-
-
Save rodrisar/2320a04ede56b1c235b9 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