URL

Difference between URL & URI

URI is parent entity. URL contains protocol and is subset of URI.

  • URI: foo.html
  • URN: example.com/foo.html (globally unique)
  • URL: http://example.com/foo.html (includes protocol)

https://danielmiessler.com/study/url-uri/#gs.p3ItnCM

URL Maximum Length

According to the HTTP spec, there is no limit to a URL's length. Keep your URLs under 2048 characters; this will ensure the URLs work in all clients & server configurations. Also, search engines like URLs to remain under approximately 2000 characters.

Chrome has a 2MB limit for URLs, IE8 and 9 have a 2084 character limit. So everything points in keeping your URLs limited to approx. 2000 characters.

Also, from a usability point-of-view, URLs that long are not usable/readable by users.

However, the domain name has a max. length of 255 characters. So to be on the safe side, the max. length of an URL segment would be around 1745 characters, given that your URL exists out of 1 segment.

https://stackoverflow.com/a/33733386/1492782

Published