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

Reply via email to