How does the URL on YouTube videos know that the unique part of the URL is case-sensitive?

864 views

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

22 Answers

Anonymous 0 Comments

I’m general computers don’t just think a capital letter and a lower case letter are the same thing. Basically at the end of the day each character is converted to some number. So you can think of lowercase a-z as being 1-26 and then capital A-Z and 27-52. Sometimes programmers recognize the capitalization doesn’t matter and will automatically convert all characters one way or another before working with that you typed in. This is likely what the Internet service providers and DNS systems are doing. Sometimes they do care like YouTube who wants more unique IDs so they treat capitals differently. The difference is what system is interpreting what part of the url. The domain name isn’t handled by YouTube and the routing after the domain is

You are viewing 1 out of 22 answers, click here to view all answers.