Ravi, I know you dont have to surround CFScript tags with CFOutput tags. What errors are you getting.
I've used a similar script with HMS hosting. Using CFScript should be a bit faster as CF processes the CFScript block all at once as opposed to processing each tag individually. sas -- Scott Stewart ColdFusion Developer SSTWebworks 4405 Oakshyre Way Raleigh, NC. 27616 (919) 874-6229 (home) (703) 220-2835 (cell) -----Original Message----- From: [STS] Ravi Gehlot [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 8:57 AM To: CF-Talk Subject: Using tags with CFSCRIPT I found a way to cheat HostMySite's 1 domain per account set up. What this does is it checks the URL for the domain typed and it redirects it to a directory specific for that domain. That way I am able to host all my sites with the CF+ Builder package. My question is...I was about to achieve this with <cfswitch><cfcase> but when I switched it over to a cfscript block I started getting errors. Can anyone tell me where I made a mistake? Before anyone asks...yes...I am sticking with CFSCRIPT. CODE: <cfoutput> <cfscript> switch(cgi.http_host) { case 'www.brightWebWorks.com':cflocation(theURL:'brightWebWorks.com/'); break; case 'brightWebWorks.com':cflocation(theURL:'brightWebWorks.com/'); break; case 'www.sunshineTechSolutions.com':cflocation(theURL:'sunshineTechSolutions.com /'); break; case 'sunshineTechSolutions.com':cflocation(theURL:'sunshineTechSolutions.com/'); break; case 'www.sunshineTechnologySolutions.com':cflocation(theURL:'sunshineTechnologyS olutions.com/'); break; case 'sunshineTechnologySolutions.com':cflocation(theURL:'sunshineTechnologySolut ions.com/'); break; case 'www.ravigehlot.com':cflocation(theURL:'ravigehlot.com/'); break; case 'ravigehlot.com':cflocation(theURL:'ravigehlot.com/'); break; case 'www.ravigehlot.net':cflocation(theURL:'ravigehlot.net/'); break; case 'ravigehlot.net':cflocation(theURL:'ravigehlot.net/'); break; case 'www.lookForAStripper.com':cflocation(theURL:'lookForAStripper.com'); break; case 'lookForAStripper.com':cflocation(theURL:'lookForAStripper.com'); break; case 'www.falacidade.com':cflocation(theURL:'falacidade.com'); break; case 'falacidade.com':cflocation(theURL:'falacidade.com'); break; case 'www.amadosgest.com':cflocation(theURL:'amadosgest.com'); break; case 'amadosgest.com':cflocation(theURL:'amadosgest.com'); break; default:cflocation(theURL:'76.12.205.99'); } </cfscript> </cfoutput> Ravi. -- ------------------------------------------------------------ Ravi Gehlot Web Programmer & IT Specialist Sunshine Tech Solutions, LLC http://www.sunshinetechsolutions.com [EMAIL PROTECTED] President ------------------------------------------------------------ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303283 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

