That looks great to me.  You just place the application.cfm file in your
root level directory of the old site and all the urls should execute that
application.cfm file.

--=@ greg @=--
----- Original Message -----
From: "Josh R" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, February 02, 2001 11:28 PM
Subject: CFLocation on any page based on Domain Name


> I have two domain names pointing to the same IP address. To make things
> easier, I'd like to get everyone on the same domain name BUT much
> advertising has been placed with the "old" URL AND they point to many
> diferent pages. Is there a way move them over to the other URL no matter
> what page they come in to?
>
> For example: If they come to www.oldsite.com/price-quote.cfm I want to
move
> them over to www.newsite.com/price-quote.cfm
>
> Such as the pseudo code below?
>
> cfif FindNoCase("oldwebsite.com", CGI.Server_Name)>
>
> cflocation url="http://www.newsite.com/#SCRIPT_NAME#?#QUERY_STRING#"
> addtoken="YES">
>
> /cfif>
>
>
> What do I need to make this work? If I place this in our application.cfm,
am
> I on the right track?
>
> Thanks.
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to