Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Url

  1. #1
    Regular Coder
    Join Date
    Apr 2003
    Location
    Canada, Ontario, Mississauga
    Posts
    312
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Url

    When I got a free Web account from my ISP, my address ends with /~my_name, do anyone know why do I need that ~?

    I signed up for a free host from a site, but this time, my_name for the address is in front of the URL. eg, my_name.freehost.com

    I understand my_name at the end of URL means the server give an individual user a folder (eg, folder called my_name), but how does my_name at the front of the address works?

    Thank you so much,

    Mike

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    The ~ means that it is a sub site, its a practice that isn't used too much now.

    Having your name in front of the domain name is called a host header. You still have a directory on the server, and the host header just points there.

    Some hosts do it that way others put it as a directory, it is just how they decided to set up their system.
    OracleGuy

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    185
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think that's an old Unix convention. The ~ is meant to indicate a username and it gets treated as a virtual directory. In other words, there is no physical ~username directory under the web site root. Instead, the server maps it to a directory within the user's personal space.

    You still often see it on sites for universities and schools. Presumably, since you have a large number of student accounts that constantly come and go, it's easier to maintain. You don't have to create and delete directories within the web site for each user, just set up an account and let the web server do the mapping.


  •  

    Posting Permissions

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