How do you create a subdomain?

Discussion in 'Hosting Services / Control Panel' started by TonyP, Dec 7, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. To add an additional domain to your account, you would have to addon a domain pointer package. This domain pointer package will only point the domain to your root directory. so website1.com and website2.com will both pull up the same site.


    you can create a script on your site to redirect the subdirectory if you want, but this configuration would have to be done on your end.



    Joel Thoms
    DiscountASP.NET
    http://www.DiscountASP.NET
     
  2. Not an hosting account,but as an 'addon' to your exisiting hosting account.You can have both the domains point to your root directory and then handle it from there programmatically .

    Control Panel>Addon Manager>Root Domain Pointer(Domain/Pointer Manager)>Order Root Domain Pointers

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. You can easily trap multiple domains without sub domains and send the ones you want to any folder on your account site.
    We've posted code for this, if you can't find it we can post it again or provide links. [​IMG]
     
  4. Vikram,
    I see.

    wisemx
    I looked but I don't see the code. Any help will be appreciated.
     
  5. You could check the requested url as follows


    if (Request.Url.ToString().Contains('website1.com'))
    {
    Response.Redirect('/somefolder');
    }

    and accordingly redirect to sub folders.

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     
  6. Thank you both.
     
  7. Depends on what you're using to script but all of the server languages supported here have their own tricks.


    You can rewrite the entire URL/domain once the visitor is at the page destination.
     
  8. Greetings,
    I have a domain1.com with many sites, and domain2.com, pointing to domain1.com root. I make a script in domain1.com root to redirect domain2.com to domain1.com/domain2. What shall I see in browser's adress box and status bar? Domain2.com or domain1.com/domain2 ?
    Regards,
    Paul
     
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