adding Sub Domain

Discussion in 'DNS/Domain names' started by chnaveed, Nov 15, 2010.

  1. i want to add 'sub domain' under the 'main domain'.
    please help me step by step how i add sub domain.

    Thanks
     
  2. Ray

    Ray

    Log into your Winhost control panel. Navigate to your Site Manager by clicking on the tab Sites and clicking on the link Manage.

    Find the button that reads "Subdomain Manager" and add the desired subdomain names.

    https://cp.Winhost.com/sites/subdomain.aspx
     
    Last edited by a moderator: Oct 14, 2015
  3. working with subdomain

    thanks for early response.

    now i created sub domain but how to redirect a subdomain to a subdirectory. after creation sub domain what steps i do to redirect subdomain to sub directory. please tell me in detail and told me with all steps. i am very upset due to this issue. please help me early.
     
  4. Ray

    Ray

    Last edited by a moderator: Oct 14, 2015
  5. working with subdomain

    i read this script. but i can not understand.

    1. where i placed this script:-
    <%
    If InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase
    ("subdomain1.HostingAccountDomain.com") ) > 0 Then
    Response.Redirect("/subdomain1")
    ElseIf InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase
    ("subdomain2.HostingAccountDomain.com") ) > 0 Then
    Response.Redirect("/subdomain2")
    ElseIf InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase
    ("subdomain3.HostingAccountDomain.com") ) > 0 Then
    Response.Redirect("/subdomain3/home.asp")
    End If
    %>

    2. where i created following:-

    http://subdomain1.HostingAccountDomain.com --> http://subdomain1 .HostingAccountDomain.com/subdomain1

    http://subdomain2.HostingAccountDomain.com --> http://subdomain2 .HostingAccountDomain.com/subdomain2

    http://subdomain3.HostingAccountDomain.com --> http://subdomain3 .HostingAccountDomain.com/subdomain3/home.asp

    I am very thankful to you if you teach me step wise because i have no experience in ASP. if is it prossible Winhost staff create me all above step in my domain because i have hosted my domain at Winhost.
    thanks.
     
    Last edited by a moderator: Oct 14, 2015
  6. Ray

    Ray

    Try placing the script at the top of your default page. As an example if your default page is index.asp, it will be at the top of the page just under the tags <head></head>

    The lines http://subdomain1.HostingAccountDomain.com is an example so you need to type your own subdomain name, and you need to create the subfolder using FTP and that is what you will point the redirect script to.
     

Share This Page