Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the use of "~" tilde in url? [closed]

  1. what is the use of ~ tilde in URL?

  2. I am using cPanel, and have link including tilde, why is tilde there?

    When we buy server space but do not have dns or don't want to use it for development purposes,we use the like http://serverip/~foldername.

like image 495
amolv Avatar asked Jun 06 '11 13:06

amolv


People also ask

Is tilde URL safe?

In particular, tilde and some other characters have now been declared as "safe", thereby not requiring encoding. However, the encoded notation is still a valid alternative and works more reliably.

Is tilde a special character?

Te tilde (~ , pronounced TILL-duh or TILL-dee and sometimes called a "twiddle" or a "squiggle") is a special character found on most keyboards and used in a wide range of IT-related applications, including mathematics, programming, file systems, directories and URL addressing.


2 Answers

Well, a webserver is free to use any character after the leading URI part for whatever purpose it wants.

That being said, the use of ~ generally hearkens back to the early days of the web, when just about every web server ran on Unix. In the Unix world, systems supported multiple users, each with their own home directory. If you want to go to your own home directory, you cd ~. If you want to go to some other user like fred's home directory, that would be cd ~fred.

So when people started putting up web servers, they would generally let every user in the system have their own web space, which is accesible from the root of the webserver by using ~username.

For example, a very old website of mine (now defunct) provided by an old ISP (Telepath) was at http://www.telepath.com/~dennison/

like image 173
T.E.D. Avatar answered Oct 19 '22 08:10

T.E.D.


Actually tilde '~' represents home directory. When you place tilde in url, It will access from home directory

like image 23
vkrams Avatar answered Oct 19 '22 08:10

vkrams