<br><br><div class="gmail_quote">On Thu, Jul 16, 2009 at 10:50 AM, Adrian Rossouw <span dir="ltr"><<a href="mailto:adrian@daemon.co.za">adrian@daemon.co.za</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
On 16 Jul 2009, at 4:16 PM, Khalid Baheyeldin wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
As others said, you either use symlinks (which forces you to have two directories per site), or the new sites.php feature of Drupal 7.<br>
<br>
Using that, you can have a contrived name for each site (even site1, site2, or an md5 hash for each site), and redirect the site in it.<br>
<br>
The trick is to not use sites/default for each site from now on, and only use a unique identifier. That identifier can be the same when you develop the site, and remains the same when you deploy the site.<br>
</blockquote>
<br></div>
Just because a work around exists doesn't mean the current behaviour isn't wrong.<br>
<br>
What are the reasons for the files not being relative ?<br>
</blockquote></div><br>Relative or absolute can be debated. I think that relative is more elegant and more portable.<br><br>But this is for stuff in the files table only. Once you publish a site and you reference static things in it as <img src="/sites/<a href="http://site1.example.com/files/blah.jpg">site1.example.com/files/blah.jpg</a>" /> you are stuck with that path.<br>
<br>The sites.php method avoids this. You can have sites/12345/files/blah.jpg, and it is no longer dependent on the domain name. Development and testing can happen to the same path.<br><br>So, yes, I agree that relative is better, but it does not solve all the issues that sites.php does.<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>