Don't know if anyone pointed this out, but cgi.server_name doesn't include the 
protocol (like 'http://').

So, your test should be more like so:

<cfif cgi.server_name eq "domain.com" or cgi.server_name contains
"domains.com">
  <cfheader statuscode="301" statustext="Moved permanently">
  <cfheader name="Location" value="http://www.domain.com";>
</cfif> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:334287
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to