In your application.cfm, having something like the following:
<cfif CGI.Script_name IS '/site1'>
<cflocation url = "www.experts.com/services/
<cfelseif CGI.Script_name IS '/somethingelse'>
<cflocation url = "somewhere else">
....etc...
</cfif>
That's not tested, so play around with it first. But application.cfm will catch every page request before it happens and is a nice central place for updating these links.
Main Topics
Browse All Topics





by: SBennettPosted on 2008-04-04 at 15:15:21ID: 21286016
In CF 7 and below you will use a combination cfheader tags in your application.cfc/cfm so that if a user hits a url that needs to be redirected you would execute:
.com">
om" statusCode="301">
<cfheader statuscode="301" statustext="Moved permanently">
<cfheader name="Location" value="http://www.mynewurl
<cfabort>
In CF8 you can do that same thing with a cflocation using the new status code argument
<cflocation url="http://www.mynewurl.c