<% 'ASP Version ...
sname = Request.ServerVariables("SERVER_NAME")
sname = ucase(sname)
if InStr(sname,"DOMAIN1") <> 0 then
response.redirect "subdirectory to go to"
elseif InStr(sname,"DOMAIN2") <> 0 then
response.redirect "2nd subdirectory to go to"
elseif........
end if %>
<!--- ColdFusion Version --->
<CFSET sname = lcase(CGI.Server_Name)>
<CFIF find("domain1", sname, "1") NEQ 0>
<CFLOCATION url="/domain1/index.cfm">
<CFELSEIF find("domain2", sname, "1") NEQ 0>
<CFLOCATION url="/domain2/index.cfm">
<CFELSEIF ....>
...
<CFELSE>
<CFLOCATION url="index.cfm">
</CFIF>
Hth,
Jeff Garza
Lead Developer/Webmaster
Spectrum Astro, Inc.
480.892.8200
[EMAIL PROTECTED]
http://www.spectrumastro.com
-----Original Message-----
From: Thane Sherrington [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 12:48 PM
To: CF-Talk
Subject: RE: Multiple domains going to one webspace
At 01:23 PM 2/18/02 -0600, Rick Eidson wrote:
>Tell IIS to forward all request to the main URL. Its in the same place
>you
>specify Home Directory.
I purchasing space from a host, so I don't think I have that option. On
their page, they suggest the following ASP code to do it:
"<%
sname = Request.ServerVariables("SERVER_NAME")
sname = ucase(sname)
if InStr(sname,"DOMAIN1") <> 0 then
response.redirect "subdirectory to go to"
elseif InStr(sname,"DOMAIN2") <> 0 then
response.redirect "2nd subdirectory to go to"
elseif........
end if"
But I was wondering if it is possible to do in CF as well.
T
______________________________________________________________________
Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists