Asp code:
if request.ServerVariables("SERVER_NAME")="baidu.com" or request.ServerVariables("SERVER_NAME")="jd.com" or request.ServerVariables("SERVER_NAME")="www.jd.com" then
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.baidu.com"
Response.End
end if