Skip to content

Instantly share code, notes, and snippets.

@mistermark
Created July 22, 2015 14:42
Show Gist options
  • Save mistermark/c2f987a7a64249624f4f to your computer and use it in GitHub Desktop.
Save mistermark/c2f987a7a64249624f4f to your computer and use it in GitHub Desktop.
# Attempt to load files from production if they're not in our local version
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
# Replace http://stevegrunwell.com with your production site's domain name
RewriteRule (.*) http://stevegrunwell.com/wp-content/uploads/$1
</IfModule>
# source: https://stevegrunwell.com/blog/keeping-wordpress-under-version-control-with-git/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment