By slothario on
Because doing so makes the URLs longer. Wouldn't it be better to move the files directory to the root? Is there some reason why I shouldn't do that?
Also, it seems kind of kludgy to store all the images that I use within pages in a big files directory, but then again it seems to work fine for my purposes. Is this a good idea, or should I change it?
Comments
Good for upgrading
It's smart to keep the files in the sites/default/files-directory. When you want to upgrade your site you know there's where your stuff is. The rest is core Drupal.
That's why you put your contributed modules and your own themes in the sites-directory too.
Oh, so the "sites" directory
Oh, so the "sites" directory is basically everything you create? Also, what's the difference between sites/all and sites/default?
Also, I have some custom scripts I wrote to use on my Drupal installation--for instance, one that would load a static HTML page as a node. Do you think it'd be wise to store that in something like a my_files directory in sites/all, or if not, where?
sites/all and sites/default differences
sites/all is for storing any custom modules and themes for the site. If you are using multi-site, any modules and themes in this folder will be available on all sites. You do need to create two directories: modules and themes.
sites/default is for the default settings file, if no directories matching the domain name/subdomain are found.. This directory also contains your files folder for the main site.
Here's a link about multi-site so I don't re-explain it all here:
http://drupal.org/node/43816
(Basically multi-site allows you to use the same Drupal core install for multiple domains, with one or multiple databases, and you can share users across them.. see the link above for more information on this.)
Any additional domains will need a folder created for them:
www.domain.com (whatever the domain and subdomain is for the site.)
You will need a settings.php file in this folder, and unlike the default/all folders, you put settings.php, files, modules, and themes all in one folder (as well as a tmp folder).
Hope this helps
Acquia Drupal Stack Installer
Download the Acquia Drupal Stack Installer, and you can run Drupal locally on your machine.. when you create additional websites, you will see how a multi-site setup is created, as this is how the stack installer creates the Drupal sites...
http://acquia.com/downloads