Subdomains

Discussion in 'Hosting Services / Control Panel' started by myvtlifecom, Jun 22, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hello, this is probably much discussed topic but I can't get it working. I subscribed to the unlimited sub domain add on and downloaded to the server the file with the script for redirecting the sub domain to directories.
    As far as I understood it has to be a plain default.aspx file in the root directory, with the code that you guys provided before

    for example:

    <%
    If InStr( UCase(Request.ServerVariables('SERVER_NAME')), UCase('personal.myvtlife.com') ) > 0 Then
    Response.Redirect('/personal')
    ElseIf InStr( UCase(Request.ServerVariables('SERVER_NAME')), UCase('elena.myvtlife.com') ) > 0 Then
    Response.Redirect('/elena')
    ElseIf InStr( UCase(Request.ServerVariables('SERVER_NAME')), UCase('subdomain3.YourHostedDomainName.com') ) > 0 Then
    Response.Redirect('/subdomain3/home.asp')
    End If
    %>

    I downloaded the default file, however when I am accessing for example www.personal.myvtlife.com it shows only the files that are in the main directory www.myvtlife.com

    How can I get the script to work or what am I missing :(.

    Thank you.
     
  2. 'www.personal.myvtlife.com' takes me to a static page.Well unlimited

    sub-domains basically means http://anything.yourdomain.com will point your

    site's root (which is happening) but instead a static page is being pulled

    up.Make sure the page where you have the specified redirecting script is set as

    your default page (Control Panel>IIS Manager>Default Documents-prioritize the

    page that has the redirecting script) .

    Following is a alternative sample script for a asp.net page :

     
  3. Thanks a lot.This is what I missed, setting the redirecting script page as the default using the (Control Panel>IIS Manager>Default Documents-prioritize the

    page that has the redirecting script) . /emoticons/hop.gif
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page