Whenever I go to YouTube or any website at all, it doesn’t matter if I write the website name in lowercase letters or uppercase letters, I will land on the same website. But whenever we go to a video and even replace 1 letter with lowercase or uppercase, the link doesn’t work.
How does the URL know that one section is not case-sensitive while the other section is case-sensitive?
I can understand why that’s the case. To keep the URLs unique. just in case something similar comes up. But what’s happening behind the scenes?
In: 52
The domain of the website is used by DNS to look up which server that website is at. DNS is case insensitive. All domains are converted to lower case before the lookup takes place. The rest of the URL is used by HTTP to identify the resource at the website you want to get. And HTTP is case sensitive. It is up to the webserver if they want to convert this part to lower case or not, some do and some do not. In the case of YouTube they use the case of the characters to further identify exactly which video you want to watch. So their URLs are case sensitive.
Latest Answers