[development] Accommodating a second base_url

Khalid Baheyeldin kb at 2bits.com
Fri Oct 30 02:44:25 UTC 2009


>  $base_url = $base_root . $base_path;
>

And in addition to that, the base_path() function provides you with
the subdirectory name if that is all you are after.

If you have all the domains/subdomains in Apache's vhosts pointing
to the same directory/subdirectory, then all you need is the code in
template.php. The $base_url, including the subdirectory will all be
the same for all the domains/subdomains.
-- 
Khalid M. Baheyeldin
2bits.com, Inc.
http://2bits.com
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
Simplicity is the ultimate sophistication. --   Leonardo da Vinci
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20091029/f09824dc/attachment.html 


More information about the development mailing list