You can do it simply:

<cfif (#cgi.server_name# EQ "www.name1.com")>

<cflocation url="">
<cfelseif (#cgi.server_name# EQ "www.name2.com")>

<cflocation url="">
</cfif>



Eric

  _____  

From: Les Mizzell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 11:08 AM
To: CF-Talk
Subject: Redirect to page based on URL...

I have a client the currently has two domain names pointing to the same
site.  They've now asked me to redirect one of the names to a specific
file down inside the site.

I'm pretty sure this is something that I can do with cfhttp or one of
the related tags, but I'm not exactly sure how to pull this off..

www.name1.com would go to "www.mysite.com/index.cfm" page as normal
www.name2.com would redirect to "www.mysite.com/somefolder/somefile.cfm"

Pointers?

Thanks in advance.

--
Les Mizzell
---------------------------------------
Do geeks die when exposed to sunlight?
---------------------------------------

  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to