Skip to content

Instantly share code, notes, and snippets.

@rorymcdaniel
Created June 22, 2017 14:12
Show Gist options
  • Save rorymcdaniel/0074a4b561c3239daada550f172a7d72 to your computer and use it in GitHub Desktop.
Save rorymcdaniel/0074a4b561c3239daada550f172a7d72 to your computer and use it in GitHub Desktop.
Pull Uploads from Production in WordPress staging environment
# /wp-content/uploads/.htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) http://www.yourproductionserver.com/wp-content/uploads/$1 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment