SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Oct 2004
    Location
    uk
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    create sub domain

    does anyone know how to programmatically create a sub domain with C#?

    essentially when someone registers with my site they will choose a name and this will be used as their website name...

    ie if my domain is - www.domain.com

    i want to set up www.theirname.domain.com when they complete registration....

    how would i do this?

  2. #2
    SitePoint Wizard
    Join Date
    Feb 2007
    Posts
    1,274
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need a registrar that allows * subdomains, i.e. who resolves all "unknown" subdomains to a catch-all ip address.

    What you do on the server depends entirely on what you want to achieve. If you are offering the same application to all of these customers, you would probably be best of just using the same app and partition data according to the subdomain. This would involve investigating the Request.Url property.


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
  •