By ceci123 on
It sounds silly but do I need to get the Clean URLs working before I get the multisite to work? If so, do you know where i can find a tutorial?
I installed the multisite_manager-6.x-1.0-alpha1.tar.gz and configured following the INSTALL.txt file but after creating a site, say, "news_site"...it creates ok but the url looks like "drupal/?q=node/4". I was expecting to see something like drupal/news_site
I configured using this from the INSTALL.txt file:
Assuming you will make all new sites available at /site/{shortname}/
1. PUT SOMETHING LIKE THIS IN YOUR APACHE CONFIG:
<VirtualHost *:80>
AliasMatch ^/site/\w+/(.*) /var/www/drupal/$1
DocumentRoot /var/www/drupal/
</VirtualHost>
2. PUT SOMETHING LIKE THIS IN YOUR ./sites/default/settings.php
or better at ./sites/www.example.com.site/settings.php
----CODE BEGIN-----
$requri = explode('/', request_uri());
if (sizeof($requri) >1 && $requri[1]=='site' && $requri[2] != '') {
$my_site_base = $requri[2];
#this will be the database shared between the main site and the shared sites
$db_url = 'mysql://username:password@localhost/database';
$db_prefix = $my_site_base."_";
$base_url = "http://www.example.com/site/$my_site_base"; // NO trailing slash!
}
----CODE END-------
thanks
c