Both work well, but I prefer the cflocation method. It's cleaner looking while the cfheader looks kind of hackish. I list it in my style guide as "favor cflocation over cfheader when doing redirects"
-- Michael Dinowitz Lead Author - Adobe Coldfusion Anthology http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion On Tue, Aug 17, 2010 at 12:38 PM, Matthew Smith <[email protected]> wrote: > > Which is preferred? > > <cfheader statuscode=â301â³ statustext=âMoved permanentlyâ /> > <cfheader name=âlocationâ value=â > http://www.mysite.com/new-location-for-content/â /> > > or > <cflocation > url = âhttp://www.mysite.com/new-location-for-content/â > addToken = ânoâ > statusCode = â301â³> > > Redoing all links on my site for better seo. > > -- > Regards, > Matthew Smith > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336341 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

