Skip to content

Instantly share code, notes, and snippets.

@JAW-Dev
Last active August 20, 2019 04:32
Show Gist options
  • Save JAW-Dev/525f9be75b554191a18da61cf5490050 to your computer and use it in GitHub Desktop.
Save JAW-Dev/525f9be75b554191a18da61cf5490050 to your computer and use it in GitHub Desktop.
set $remote_server https://www.domain.com/;
location ~ ^/wp-content/uploads/(.*) {
rewrite ^/wp-content/uploads/(.*)$ $remote_server/wp-content/uploads/$1 permanent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment