Results 1 to 9 of 9

Thread: Sub Domains

  1. #1
    Join Date
    Mar 2005
    Location
    Hampshire
    Posts
    432
    Thanks
    4
    Thanked 3 Times in 3 Posts

    Default Sub Domains

    I know that when you create a sub domain that it is a sub folder, eg

    wwwroot
    ----- SubDomain1
    ----- SubDomain2

    However, is it possible to have subdomain2.yourdomain.com point to the same folder as subdomain1.yourdomain.com

    eg

    wwwroot
    ----- SubDomain1, SubDomain2


    Cheers

    Ken

    Just chill

  2. #2
    Join Date
    Apr 2005
    Location
    Bucks. UK
    Posts
    223
    Thanks
    1
    Thanked 6 Times in 6 Posts

    Default

    Hi Ken,

    I don't think you can set an alias of a subdomain.
    But you could create subdomain1.yourdomain.com as a full domain and then add an alias of subdomain2.yourdomain.com to it.

    Not quite what you're after but close.

    Regards
    Keith.

  3. #3
    Join Date
    Mar 2005
    Location
    Hampshire
    Posts
    432
    Thanks
    4
    Thanked 3 Times in 3 Posts

    Default

    It's an option but not quite what I'm after. Basically, I have a client that uses DNN. Now the thing is that they want to use subdomains rather than the full domain eg

    mainsite.clientsdomain.com - this is the equivilant of www.clientdomain.com (basically it gets redirected to mainsite.clientdomain.com) as the main portal in DNN

    then they want another portal for just internal people

    internal.clientdomain.com

    DNN can handle multiple portals etc, but they do not want to use multiple domains. Hope this explains better what I'm trying to achive.

    Ken

    Just chill

  4. #4
    Join Date
    Feb 2004
    Posts
    4,903
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    What about adding mainsite.clientsdomain.com as an alias of the main domain?
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  5. #5
    Join Date
    Mar 2005
    Location
    Hampshire
    Posts
    432
    Thanks
    4
    Thanked 3 Times in 3 Posts

    Default

    that may be an option I will have a look at it. One of the main reasons for wanting to alias a subdomain is that they can then have multiple web apps running. I have found that having another application running in a sub directory, where you also have an application running on the main site can cause problems with the app on the sub domain. (Basically down to how it works with the web.config file)

    Just chill

  6. #6
    Join Date
    Feb 2004
    Posts
    4,903
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    But the alias isnt even a new site in IIS, its just a hostheader on the original site - so any settings/applications etc... would apply.

    With a sub domain, Helm created a new site in IIS, but things like applications dont apply to it.
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  7. #7
    Join Date
    Mar 2005
    Location
    Hampshire
    Posts
    432
    Thanks
    4
    Thanked 3 Times in 3 Posts

    Default

    I will have to think on this and see what I can come up with for my client, I'm sure that I can come up with some sort of cunning plan

    Just chill

  8. #8
    Join Date
    Feb 2007
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi

    Glad I found this - it's a bit like what I want to do... only I'm awkward

    Basically I want to setup:
    - www.parkrun.com
    - bushy.parkrun.com
    - wimbledon.parkrun.com

    All of these will point to the same DNN application (and indeed the same portal) running within parkrun.com

    But ideally I'd like the default page for each of the subdomains to be a different DNN Tab - e.g.
    - www.parkrun.com/ points to Default.aspx?Tabld=12
    - bushy.parkrun.com/ points to Default.aspx?Tabld=24
    - wimbledon.parkrun.com/ points to Default.aspx?Tabld=36

    Anyone think of an easy way for implementing this? - on my previous host it was easy because I hosted the DNN in a virtual directory - but ideally I'd like to remove the virtual directory now...

    Any help appreciated :-)

    Thanks

    Hollywood

  9. #9
    Join Date
    Oct 2006
    Posts
    38
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    You can use ISAPI Rewrite to match against the host and then rewrite the url.

    Something like this...

    Code:
    RewriteCond Host: www\.parkrun\.com
    RewriteRule / /Default.aspx?Tabld=12
    
    
    RewriteCond Host: bushy\.parkrun\.com
    RewriteRule / /Default.aspx?Tabld=24
    
    
    RewriteCond Host: wimbledon\.parkrun\.com
    RewriteRule / /Default.aspx?Tabld=36

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Sub-domains question...
    By fsquared in forum Technical Support
    Replies: 12
    Last Post: 25th December 2005, 07:16 PM
  2. EU Domains
    By Raymond in forum Customer Feedback and Suggestions
    Replies: 13
    Last Post: 21st December 2005, 10:44 AM
  3. Temporary Domains
    By jaimalchohan in forum Technical Support
    Replies: 22
    Last Post: 19th October 2005, 10:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •