Created
July 24, 2014 17:28
-
-
Save joemcgill/67772c0c25af23ac3eea to your computer and use it in GitHub Desktop.
Wordpress Dev Uploads Directory Trick
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
# 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://productionsite.com with your production site's domain name | |
RewriteRule (.*) http://productionsite.com/wp-content/uploads/$1 | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment