301 "Permanent" URL Redirection with Coldfusion 8 and cflocation
When moving domains, or forwarding the traffic from one site to another, the usual and preferred method is a "301" or "permanent status" redirection, which, simply put, means "the page is gone and it is not coming back. Please look here from now on --> "
As Pete Frietag quickly explains in this blog post : http://www.petefreitag.com/item/648.cfm , 301 redirection with ColdFusion is as simple as could be as of CF8.
<cflocation url="http://www.newsite.com" statuscode="301" addtoken="false">
That's it.... just plop that in your old page, set the url, there's yer 301 .
Of course, this only works in cases where the old domain is still hosted on a live server, i.e. moving a directory within an existing site. For full-blown root domain redirection, see your friendly neighborhood domain registrar or server control panel.


There are no comments for this entry.
Add Comment