http://example.com/test/test/coffee.html <- this is called a URL
/test1/test2/ <- this called a path
In this context, what would be a proper expression for a part of that path, such as test2?
English Language & Usage Stack Exchange is a question and answer site for linguists, etymologists, and serious English language enthusiasts. It only takes a minute to sign up.Sign up to join this community
It's called the path segment.
The path may consist of a sequence of path segments separated by a single slash "/" character.
A URL (Uniform Resource Locator) is used to uniquely identify a resource over the web. URL has the following syntax:
So, URL consists of 4 parts. The path, in fact, is nothing more than a relative directory. In your example, test2 may either refer to a directory that has an index file or a file name changed by using URL rewrite function.