itmanmike
03-30-2009, 06:57 AM
I'm trying to get a subdomain to redirt to a specific page name _
ie: http://subdomain.domainname.com/folder/page.aspx. host says to use the following code but i'm not sure how to change some of the code and once i cahnge the code where do i put it?
<%
If InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("subdomain1.YourHostedDomainName.com") ) > 0 Then
Response.Redirect("/subdomain1")
ElseIf InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("subdomain2.YourHostedDomainName.com") ) > 0 Then
Response.Redirect("/subdomain2")
ElseIf InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("subdomain3.YourHostedDomainName.com") ) > 0 Then
Response.Redirect("/subdomain3/home.asp")
End If
%>
do i change all 3 lines? also what is the SERVER_NAME and do i change it?
thank for any help.
mike
ie: http://subdomain.domainname.com/folder/page.aspx. host says to use the following code but i'm not sure how to change some of the code and once i cahnge the code where do i put it?
<%
If InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("subdomain1.YourHostedDomainName.com") ) > 0 Then
Response.Redirect("/subdomain1")
ElseIf InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("subdomain2.YourHostedDomainName.com") ) > 0 Then
Response.Redirect("/subdomain2")
ElseIf InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("subdomain3.YourHostedDomainName.com") ) > 0 Then
Response.Redirect("/subdomain3/home.asp")
End If
%>
do i change all 3 lines? also what is the SERVER_NAME and do i change it?
thank for any help.
mike