Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why uppercase isn't usual in URL

I've visited many sites that most of them used lowercase in URLs like

stackoverflow.com/questions
google.com/webmaster
bing.com/news

Why using uppercase isn't more prevalent? Is there a problem using uppercase in URL? Is this a programming language problem?

like image 984
Mohammad Avatar asked Jul 14 '15 21:07

Mohammad


People also ask

Why are URL not case sensitive?

An Internet address is only case sensitive for everything after the domain name. For example, it does not matter if you use uppercase or lowercase with "computerhope.com," it still reaches the same page. However, when typing the name of the page, file, or directory in the URL, it is case sensitive.

Why are URLs in lower case?

A mixed case URL can cause issues, especially if the same page has the lowercase address version. Specifically, usage of capital letters matters because: It will confuse Google, harming your SEO. Instead of sending page authority and link equity to one page, you're spreading it to multiple pages.

Should URLs be uppercase?

Use only lowercase letters in URLs. Some search engines and web servers treat URLs as case sensitive so mixed case URLs can cause issues. URLs that differ only by case which display the same page can create duplicate page issues which can impact your search ranking.

Does uppercase and lowercase matter in URL?

Google's John Mueller clarifies that URLs are case sensitive, so it matters whether the characters are uppercase or lowercase. Variations in cases can make one URL different from another, similar to how a URL with a trailing slash is different from a URL without the slash.


2 Answers

URLs are not case sensitive up to a point.

A URL of Foo.Bar will be treated the same as foo.bar and FOO.BAR. However, if a URL contains characters of a different case after the domain (.bar in my example), it is possible that changing the case of those characters will result in an error.

So, if a URL is provided as foo.bar/Baz, and you try to access foo.bar/baz, you risk accessing the wrong resource or encountering an error.

Remember that URLs with forward slash characters following the domain (as in foo.bar/baz) are treated (at least on the front end) as pointers to directories in a file system, and case sensitivity will be dependent on the file system the web server is using.

like image 130
Pete Avatar answered Sep 22 '22 20:09

Pete


URLs are generally case-insensitive and lowercase is used only for stylistic purposes and so it doesn't look like URLs are yelling at you. You can still find uppercase letters in URLs. For example, Amazon product pages use numbers and uppercase letters for the product ID. You can change the letters to lowercase and the same page loads.

like image 37
Josh Vazquez Avatar answered Sep 22 '22 20:09

Josh Vazquez