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


/ Published in: PHP
Save to your folder(s)

Alternate to <a href="http://snipplr.com/view/133530">this method</a>. Have not yet tested.

In settings.php, put this code:


Copy this code and paste it in your HTML
  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. ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.