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:'sunshineTechnologySolutions.com/'); break; case 'sunshineTechnologySolutions.com':cflocation(theURL:'sunshineTechnologySolutions.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:303280 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4