Gotcha. Thanks.

-----Original Message-----
From: Tom Chiverton [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 8:39 AM
To: CF-Talk
Subject: Re: Is there anything inherently wrong with this Application.cfm
file?


On Friday 13 Apr 2007, Che Vilnonis wrote:
> Tom... I'm not following you... Please explain how I don't have to 
> evaluate the domain on each page?
> > <!--- determine the domain name. --->
> > <cfset strSiteUrl = LCase(Replace(cgi.server_name, "www.", "", 
> > "ALL")) />

Your doing a replace to remove the 'www' ?
Why not just write
        <cfcase value="buickpartspage.com,www.buickpartspage.com">
?

You are also lower casing it. AFAIK all web servers will present
CGI.SERVER_NAME in a consistant case not matter what the user types in.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275128
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to