Skip to content

Instantly share code, notes, and snippets.

@lajlev
Created January 30, 2014 09:20
Show Gist options
  • Save lajlev/8705167 to your computer and use it in GitHub Desktop.
Save lajlev/8705167 to your computer and use it in GitHub Desktop.
Attempt to load files from production if they're not in our local version. Copy to your local version sites/default/.htaccess
# Attempt to load files from production if they're not in our local version. Put this file in upload folder.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) http://cyberhus.dk/sites/default/files/$1
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment