Skip to content

Instantly share code, notes, and snippets.

@tlattimore
Forked from zachseifts/gist:3060663
Created July 6, 2012 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlattimore/3060665 to your computer and use it in GitHub Desktop.
Save tlattimore/3060665 to your computer and use it in GitHub Desktop.
[aegir@bender ~]$ more .drush/appstate.drush.inc
<?php
function appstate_provision_apache_vhost_config($uri, $data) { return array(
" # rewrites /sites/default/files to the new url",
" <IfModule mod_rewrite.c>",
" RewriteEngine On",
" RewriteRule ^/sites/default/files(/.*)$ sites/" . $uri . "/files$1 [R,L]",
" </IfModule>",
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment