Thanks, everyone. CGI.Server_Name worked fine.
Sorry I took so long to thank everyone for your help. I believe it was *last year* when I first posted the question! ;o) Rick -----Original Message----- From: Everett, Al [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 31, 2002 11:45 AM To: CF-Talk Subject: RE: How do I get the domain name extracted from the URL of a requ ested page? Have you tried CGI.SERVER_NAME CGI.HTTP_HOST If you have the URL but not the CGI variables you can also use: ListGetAt(myURL,2,"/") > -----Original Message----- > From: Rick Faircloth [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 31, 2002 11:41 AM > To: CF-Talk > Subject: How do I get the domain name extracted from the URL of a > requested page? > > > Hi, all. > > I've searched the archives, but not getting the info. > > I want to be able to determine the domain name in the URL > when a visitor comes to a site. This has to do with the issue > of setting up one set of .cfm pages to change according to what > company's info is being requested. > > From http://www.bodafordhomes.com/cfdocs/rea/index.cfm > > I want to get www.bodafordhomes.com and compare it to a domain name > stored in my database to know which graphics, info, etc. to display. > > How do I get that domain name from the URL? Is there a CGI > variable that > does this like it does the IP? Or do I have to parse the > URL? Does the URL > itself exist as a variable that I can parse? > > Thanks for the help. > > Happy New Year everyone! > > Rick > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

