you;'d actually be better off handling this through your webserver. IIS has
a built in redirect mechanism. if you create your "newsite" as a virtual
server, then go to the properties of "oldsite", you can define "oldsite" as
a redirect to a new url.
chris olive, cio
cresco technologies
[EMAIL PROTECTED]
http://www.crescotech.com
-----Original Message-----
From: Josh R [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 11:28 PM
To: CF-Talk
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists