Leave the $base_url alone. Drupal will figure it out automatically.<br><br>You can have one install (single code base), and one database, and don't set $base_url.<br><br>Then do something like this in template.php:<br>
<br><?php<br><br>function phptemplate_preprocess_page(&$vars) {<br> switch($_SERVER['HTTP_HOST']) {<br> case '<a href="http://site1.example.com">site1.example.com</a>':<br> $vars['banner'] = 'something1';<br>
break;<br> case '<a href="http://site2.example.com">site2.example.com</a>':<br> $vars['banner'] = 'something1';<br> break;<br> case '<a href="http://site3.example.com">site3.example.com</a>':<br>
$vars['banner'] = 'something1';<br> break;<br> case '<a href="http://site4.example.com">site4.example.com</a>':<br> $vars['banner'] = 'something1';<br> break;<br>
default:<br> $vars['banner'] = 'somethingX';<br> break;<br> }<br>}<br><br clear="all">Then in page.tpl.php do:<br><br><?php print $banner ?><br><br>That is all ...<br>-- <br>Khalid M. Baheyeldin<br>
<a href="http://2bits.com">2bits.com</a>, Inc.<br><a href="http://2bits.com">http://2bits.com</a><br>Drupal optimization, development, customization and consulting.<br>Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra<br>
Simplicity is the ultimate sophistication. -- Leonardo da Vinci<br>