Ross Simpson wrote:
>I'd really rather not have to dip into the headers to get this.
What is so wrong about using the headers? You think any virtual hosting
web server does it any different? So why shouldn't you do it in your own
code!? ;-)

I have done this on a couple of different servers, including AOLserver,
not a problem ever. Although in my case it was for home-grown virtual
hosting, not for redirecting. My prefered way for generating the hostname
in a fully qualified url (for use in emails, https redirect, etc.) is to
get it from a configuration file/parameter, which you can change to
whatever you need for the enviroment it is running in. (dev/test/prod)

Cheers,
Bas.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to