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&#39;t set $base_url.<br><br>Then do something like this in template.php:<br>
<br>&lt;?php<br><br>function phptemplate_preprocess_page(&amp;$vars) {<br>  switch($_SERVER[&#39;HTTP_HOST&#39;]) {<br>    case &#39;<a href="http://site1.example.com">site1.example.com</a>&#39;:<br>      $vars[&#39;banner&#39;] = &#39;something1&#39;;<br>
      break;<br>    case &#39;<a href="http://site2.example.com">site2.example.com</a>&#39;:<br>      $vars[&#39;banner&#39;] = &#39;something1&#39;;<br>      break;<br>    case &#39;<a href="http://site3.example.com">site3.example.com</a>&#39;:<br>
      $vars[&#39;banner&#39;] = &#39;something1&#39;;<br>      break;<br>    case &#39;<a href="http://site4.example.com">site4.example.com</a>&#39;:<br>      $vars[&#39;banner&#39;] = &#39;something1&#39;;<br>      break;<br>
    default:<br>      $vars[&#39;banner&#39;] = &#39;somethingX&#39;;<br>      break;<br>  }<br>}<br><br clear="all">Then in page.tpl.php do:<br><br>&lt;?php print $banner ?&gt;<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>