Drupal 7 subfolder multisite I'm trying to setup a drupal 7 multisite using subfolders for example:

example.com/site1

example.com/site2

In my drupal sites folder I have sites1 and sites2 according to sites.php I should be able to set it up as the following:

$sites['example.com/site1'] = 'site1';
$sites['example.com/site2'] = 'site2';


However this doesn't work, I can definitely see a site at example.com but am unable to see any of the sites in the sub folder.
If you want to do it this way then you have to symlink the folder to the root of the drupal install:

cd /var/www/drupal
ln -s . site1


Then within sites.php use the following:

$sites = array(
    "example.com.site1" =&gt; "site1",
);