Created
May 1, 2013 12:56
-
-
Save lajlev/5495141 to your computer and use it in GitHub Desktop.
Fetch wordpress uploads from production.
This file contains hidden or 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. Put this file in "wp-content/uploads" folder. | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule (.*) http://cfdp.dk/wordpress/wp-content/uploads/$1 | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment