BEGIN CODE: 


<!-- Get URL from address bar --> 
<cfset strURL = CGI.Server_Name> 

<!-- Look for string within the URL --> 
<cfif strURL CONTAINS "domain1.com"> 
<cflocation url = "domain1folder/index.htm"> 
<cfelseif strURL CONTAINS "domain2.com"> 
<cflocation url = "domain2folder/default.asp"> 
<cfelse> 
<cflocation url = "main.htm"> 
</cfif>