I'm hosting with 1and1 MS package, where I can have multiple domains. All my domains point to the root folder by default and apparently I can't change that default... but They have said I should use a script like the following to redirect:
[code:1:8b53d973a1]
<!--<script runat="server" Language="c#">
public void Page_Init(Object Src, EventArgs E)
{
switch((Request.ServerVariables["HTTP_HOST"]).Repl ace("
www.",""))
{
case "websitename.com":
Response.Redirect("http://my-main-1and1-domain.com/directory/default.asp");
break;
case "anothersite.com":
Response.Redirect("http://my-main-1and1-domain.com/directory2/default.asp");
break;
default:
Response.Redirect("http://my-main-1and1-domain.com");
break;
}
}
</script>--> [/code:1:8b53d973a1]
How will this affect what google see's? Is this going to hurt my SEO abilities in any way? If so, please help me with recommendations. BTW I am just learning ASP so if you post code please briefly explain and include dependant code.
TIA