what is the use of ~ tilde in URL?
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
.
相关问题
- Stop .htaccess redirect with query string
- .htaccess rule, redirecting old unexistent address
- UrlEncodeUnicode and browser navigation errors
- How to deploy a web application Aurelia in an Apac
- Apache Directory Studio not opening
相关文章
- Apache+Tomcat+JK实现的集群,如果Apache挂了,是不是整个服务就挂了?
- How reliable is HTTP_HOST?
- Making a two way SSL authentication between apache
- UnicodeEncodeError when saving ImageField containi
- mod_rewrite only on GET
- C# HttpClient.SendAsync always returns 404 but URL
- Prevent $anchorScroll from modifying the url
- jquery how to get the status message returned by a
Actually tilde
'~'
represents home directory. When you place tilde in url, It will access from home directoryWell, 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, youcd ~
. If you want to go to some other user likefred
's home directory, that would becd ~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/
Tilde isn't anything special in the URLs. It's just another character like a %20 character or a -.
Some web host companies use it to identify users by giving the users directories like /~(username)/
A tilde in a URL usually is followed by a user name and indicates that the files below that URL come from that user's home directory.
~ refers to your home directory. If it is in the URL it means that the cpanel is located relative to your home directory.