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

Trainee Asked on October 10, 2019 in Cpanel.
Add Comment
1 Answer(s)

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.

Reviewer Answered on October 10, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.