How do I redirect an incoming url request to a specific directory on the
server?

I have multiple domain names routing to the same root directory - I'd like
to have each separate domain name be directed to the appropriate directory
to keep the different sites separated.

I've tried the following cf code provided by my hosting company:


<cfif server_name IS "www.domain2.com">

  <cflocation url="directory2">

<cfelseif server_name IS "www.domain3.com">

  <cflocation url="directory3">

<cfelseif...>

</cfif>


I've put this at the top of the default page in the root directory, but it
doesn't work. What am I missing?

TIA, jon

FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to