If you are currently restructuring your website to become more “search engine friendly” here is a nice piece of code using ColdFusion, that will also let Google and other search engines know that you have moved your content to a new location and to update their links.
Instead of having 404 errors or broken links to your site, make sure you issue the search engines with a 301 status header (moved permanently) along with the new location of the content. An example would be as follows …
<cfheader statuscode=”301″ statustext=”Moved permanently” />
<cfheader name=”location” value=”http://www.mysite.com/new-location-for-content/” />
This way the search engines know your content has moved and begin changing their links to your site in their search results. Not a difficult technique but one that is often forgotten and can cost valuable SEO points!

ColdFusion 8 added the ability to add a status code when using :
ugh…why do people with technical blogs remove code from their comments? Let me try again.
ColdFusion 8 added the ability to add a status code when using <cflocation>
<cflocation
url = “URL”
addToken = “yes|no”
statusCode = “300|301|302|303|304|305|307″>
Hi,
Hoping for a quick and easy way to redirect whole sites to a particular domain as opposed to individual pages.
It can be done easily in PHP, but haven’t been able to find a good answer for CF.
Thanks!
I think this is usually done at a web server level or DNS level.
I have flex compiled code .swf file in coldfusion server.
I want to avoid direct calling of the swf file.
For that I m thinkin of redirecting the url to the login page of my coldfusion application whenever someone tries to open the swf file directly..
Can u help me how can i achieve this thing.
@hardik, I think you are best trying to use some sort of IIS or Apache rewrite module for URL rewriting and redirects. This way you can setup a rule that will redirect all calls to that SWF, straight back to your CFM page.
Well I have websphere on unix as hosting server.
My swf file is stored in unix machine where the websphere server is. I am not much familiar with these terms so I might be wrong wid some terms.
My concern is I should not allow my user to directly open swf file.The user should go the conventional way of login to system and then go to the swf.
So if there is any method of redirecting the user to login page if swf is hit, that wud b great.