Skip to content

Instantly share code, notes, and snippets.

@cweagans
Forked from jacine/.htaccess
Created December 1, 2011 23:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cweagans/1420674 to your computer and use it in GitHub Desktop.
Save cweagans/1420674 to your computer and use it in GitHub Desktop.
My favorite Drupal trick for local theme development
# Find this line and insert the code below it (adapted to use your sitename/server).
# RewriteBase /
# Use files on the dev server instead of syncing them locally.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^sites/sitename/(files/.*)$ http://dev.whatever.com/sites/sitename/$1 [L,QSA]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment