-
-
Save cweagans/1420674 to your computer and use it in GitHub Desktop.
My favorite Drupal trick for local theme development
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
# 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