Return to Snippet

Revision: 12628
at March 21, 2009 22:01 by zachharkey


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

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

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

In settings.php, put this code:

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

Initial Tags
drupal

Initial Language
PHP