[development] subdomain rewriting

Adrian Rossouw adrian at bryght.com
Tue May 23 09:29:06 UTC 2006


On 22 May 2006, at 9:28 PM, Bèr Kessels wrote:

>
> Any apache and/or rewrite gurus around who did this, or know if  
> this is
> possible at all?

url() no longer balks at complete urls.

Meaning you can provide a complete alias in the form of 'http:// 
term.domain.com/'.

The only missing part is one additional check in the lookup.

ie : $src = db_query(db_result("select src from url_alias where dst='% 
s' or dst='%s'" , $path, "http://$_SERVER[http_host]/$path"));

And of course the single signon modifications



--
Adrian Rossouw
Drupal developer and Bryght Guy
http://drupal.org | http://bryght.com




More information about the development mailing list