<cfswitch _expression_="#cgi.server_name#">
<cfcase value="www.name1.com">
<cflocation url=""> </cfcase>
<cfcase value="www.name2.com">
<cflocation url=""> </cfcase>
</cfswitch>
You'll need to make sure that you name1 relocates to a different file than
the default one else you'll setup an infinite loop and it'll get nasty,
That help?
John.
-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED]
Sent: 02 June 2004 16:08
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]

