Use this ASP code to redirect your pages to a single site. Search engines may penalize you for duplicate content if they find content at yoursite.com and www.yoursite.com or multiple domains pointing at the same site.
‘—————————————–
If lcase(Request.ServerVariables(“HTTP_HOST”))=”lyonscom.com” OR lcase(Request.ServerVariables(“HTTP_HOST”))=”www.sitenumber2.com” OR lcase(Request.ServerVariables(“HTTP_HOST”))=”sitenumber2.com” Then
Response.Status = “301 Moved Permanently”
If lCase(Request.ServerVariables(“URL”)) = “/default.asp” Then ‘ change home page here
If Len(Request.Querystring)=0 Then
Response.AddHeader “Location”, “http://www.lyonscom.com/“
Else
Response.AddHeader “Location”, “http://www.lyonscom.com/?” & Request.Querystring
End If
Else
If Len(Request.Querystring)=0 Then
Response.AddHeader “Location”, “http://www.lyonscom.com” & Request.ServerVariables(“URL”)
Else
Response.AddHeader “Location”, “http://www.lyonscom.com” & Request.ServerVariables(“URL”) & “?” & Request.Querystring
End If
End If
Response.End
End If
‘—————————————–
Note, the Response.Status line will tell the search engine crawler to remove the duplicate content and only index the conent at the new location.