Development something.myaddress.extenstion

Discussion in 'Software' started by puzzler_uk, 25 Jul 2004.

  1. puzzler_uk

    puzzler_uk What's a Dremel?

    Joined:
    7 Sep 2003
    Posts:
    317
    Likes Received:
    0
    Well i know there is a propper name for it, but i want on my site, because all users can write their own stuff and its all database centered i want to be able to have users have an easy link to their stuff.

    username.benshole.tk

    I know how to get benshole.tk/page.asp?username="username"

    but i want it the other way, so for the normal site its just the address, but for a user to get their page they wud use their username as a prefix. Anyone know how to do it, im using 2000 server iis and ASP. Thanks
     
  2. Theo

    Theo What's a Dremel?

    Joined:
    12 Jun 2003
    Posts:
    466
    Likes Received:
    0
    Don't know anything about IIS, but you're looking to create sub-domains if that's any help :)
     
  3. Foster

    Foster What's a Dremel?

    Joined:
    18 Jul 2004
    Posts:
    58
    Likes Received:
    0
    You can do this with redirects and cloaking. I've never ran a web server myself so I'm not certain how difficult this is, but the proceeding link is to a seemingly simple explanation of how to do it to myself at least.
     
  4. OneSeventeen

    OneSeventeen Oooh Shiny!

    Joined:
    3 Apr 2002
    Posts:
    3,454
    Likes Received:
    2
    Yes, you are definitely looking for subdomains, and I'm thinking you are going to have to learn a lot about DNS and NameSpaces (I found close to nothing when searching the KnowledgeBase)

    I know that in order to use IIS with sub-domains on Windows XP Pro or Windows 2000 you must use 3rd party software, as they do not naitevly support multiple web sites on the same PC. The only 3rd party software I know of off-hand is MultiSite2

    But if you are running Windows Server 2000 there may be a way to do it without 3rd party software.

    I know that for me using my apache host I simply create another folder outside of my htdocs folder, then create another htdocs folder within that, making it easy to write a .php script to generate the proper folders.
    (i.e. http://scarco.woventhorns.com )

    I'm also thinking that if you have example.com pointing at your server, you should be able to use ASP to determine what the person typed in (i.e. user001.example.com)

    I'm not sure how the windows environment works, but I thought that domain names were whatever.com and www was the most popular sub-domain, but you can actually type in whatever you want. (for example, ilikefrenchfries.woventhorns.com goes to woventhorns.com because there is no ilikefrenchfries directory, nor is there an ilikefrenchfries DNS entry on the server I am using)

    I'll talk with IT at work to try and find out how they do it.
     
  5. puzzler_uk

    puzzler_uk What's a Dremel?

    Joined:
    7 Sep 2003
    Posts:
    317
    Likes Received:
    0
    wit 2k server you can do it easilly. The iis is really good inthat you can just slap in another website/ftp site/ smtp server/ nntp server specify their port number and home folders and your away. I know there has to be a way to do it. I am pretty sure it is just another request like

    request.querystring("value")

    will return the value of

    site.com?value=827

    I just need to find how to get it to read the sub domain section of the address instead. I am sure it is a really easy thing to fix.

    Thanks all.

    Ben
     

Share This Page