This question is about multiple sites with 1 Drupal intall.code base in this environment:

* Drupal install is in a subdomain

fansites.example.com

* I want to create multiple sites in subdirectories

fansites.example.com/aliciakeys
fansites.example.com/parishilton
fansites.example.com/marthastewart
... and so on....

Following the install instructions, I created a subdirectory "fansites.example.com.aliciakeys"
inside the "sites" folder and copied the settings.php in the "default" folder. In the settings.php, I didn't change the database (just for testing purposes), but changed the base_url from http://fansites.example.com ==> http://fansites.example.com/aliciakeys

But when I go to http://fansites.example.com/aliciakeys, I get "Page Not Found" error message in the content area of the site (where the stories are supposed to be, in the center column), although I can see the login box and the primary/secondary links.

Did I miss any further step aside from creating a subdirectory within "sites" and copying and editing the default "settings.php"?

Comments

yugen’s picture

I've had similar difficulties trying to get multiple sites running. I can't help thinking that there is something missing in the documentation.

Could someone please improve the documentation on this?

thanks,
TJ

NicoDruif’s picture

Hi there,

I posted this question here as well: http://drupal.org/node/824018, not sure this is the right place?

This might be a simple one for the subdomain experts. I have two Drupal installations/websites running on the same webserver. One is a public website, which runs on the root www directory, the other one runs from a subdirectory. Via the webhost's control panel we forward a subdomain (like subdomain.domain.com) to the subdirectory (to domain.com/subdirectory). My question is about the website in the subdirectory, and the wrong url alias it generates in my opinion... Because when accessing the site via subdomain.domain.com all the url aliasses (and hyperlinks/menu items) still have the subdirectory in it, like 'subdomain.domain.com/subdirectory/content-title'. I would like it to be 'subdomain.domain.com/content-title', without the subdirectory being mentioned...

The subdirectory Drupal installation seems to find that it's baseurl is subdomain.domain.com/subdirectory, instead of just subdomain.domain.com. When I try to change this in settings.php by setting the base_url variable to subdomain.domain.com, the url aliasses are like I want them to be, and even menuitems are functioning correctly, but all the links to css files, images etc. are broken. Drupal seems to search for these files in the wrong place when it's trying to open an image like subdomain.domain.com/sites/all/themes/themename/logo.png. The file can only be opened at subdomain.domain.com/subdirectory/sites/all/themes/themename/logo.png. What I am doing wrong here? Strange right?

I thought it might have something to do with http://www.fractalomega.com/node/1 and http://drupal.org/node/37645 but I'm not sure.

Hope someone can help me out here! Thanks!