Skip to content

Instantly share code, notes, and snippets.

@campaignupgrade
Created December 5, 2017 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save campaignupgrade/aecf0959174bdfa23933ad0a9c409818 to your computer and use it in GitHub Desktop.
Save campaignupgrade/aecf0959174bdfa23933ad0a9c409818 to your computer and use it in GitHub Desktop.
# Attempt to load files from production if they're not in our local version
# https://stevegrunwell.com/blog/keeping-wordpress-under-version-control-with-git/
# or, option for main htaccess:
# RewriteCond /your/docroot/%{REQUEST_FILENAME} !-f
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
# Replace URL with the production site's domain name
RewriteRule (.*) http://example.org/wp-content/uploads/$1
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment