Q:
The first time i see an URL contains (~) ,i imagined ..
what the (~) may point to in a real URL??
Q: The first time i see an URL contains (~) ,i imagined .. what
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The ~ symbol is perhaps most commonly used by Apache’s mod_userdir. It allows local users on the same machine running the web server to expose a subdirectory of their home directory to the web via Apache. For example, given the URL
http://www.example.com/~joeuser, an Apache server might look up joeuser’s home directory (usually/home/joeuser) and append another path component to it (usuallypublic_html, resulting in the path/home/joeuser/public_html). This directory will then map to the/~joeuserURI.It’s become common to use URIs like this in more modern MVC-based web applications to refer to a user’s profile. For example,
/~joeusermight display the profile of thejoeuseruser in some web application. The meaning comes from the Apache-style URIs — you are going to that user’s “home page,” whatever that might be.