Last active
January 8, 2020 17:53
-
-
Save acerus/41ef551ec6e359fe308afba1aeafbecf to your computer and use it in GitHub Desktop.
Get WP images on local dev environment from live site
This file contains 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
location ~ ^/wp-content/uploads/(.*) { | |
try_files $uri @live_uploads; | |
} | |
location @live_uploads { | |
rewrite ^/wp-content/uploads/(.*)$ https://livesite.com/wp-content/uploads/$1 permanent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment