There are ways to do a 301 redirect from an alias to a main domain.
I use a global.asa file on my main domain to do this for my asp sites:
Code:
<script language="VBScript" RUNAT="SERVER">
Sub Session_OnStart
Dim strHost
strHost = LCase(Request.ServerVariables("HTTP_HOST"))
If Not strHost = "www.main-domain.co.uk" Then
strHost = "www.main-domain.co.uk"
Dim strScript, strQuerystring, strURL
strScript = Request.ServerVariables("SCRIPT_NAME")
strQuerystring = Request.ServerVariables("QUERY_STRING")
If Not strQuerystring = "" Then
strQuerystring = "?" & strQuerystring
End If
strURL = "http://" & strHost & strScript & strQuerystring
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", strURL
End If
End Sub
</script>
Bookmarks