<% if request.ServerVariables("HTTP_HOST")<>" www.xxx.com " then Response.Status="301 Moved Permanently" Response.AddHeader "Location"," http://www.xxx.com/ " Response.End end if %>