Posted By

zachharkey on 03/21/09


Tagged

drupal


Versions (?)

Rewrite Drupal's File system paths to remove redundant sites/example.com (alternate settings.php method)


 / Published in: PHP
 

URL: http://drupal.org/node/53705

Alternate to this method. Have not yet tested.

In settings.php, put this code:

  1. <?php
  2. $conf['file_directory_temp'] = 'sites/' .substr(strrchr(dirname(__FILE__), '/'), 1) .'tmp';
  3. $conf['file_directory_path'] = 'sites/' .substr(strrchr(dirname(__FILE__), '/'), 1) .'/files';
  4. ?>

Report this snippet  

You need to login to post a comment.