Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do you call a URL path without a host name?

Out of curiosity and the need to name a configuration setting properly: What do you call an URL that is an absolute path reference but without a domain?

  • http://www.domain.com/path/to/myfile is an absolute, full URL.

  • ../to/myfile is a relative path.

What would you call /path/to/myfile?

Is there a convention? Am I just daftly overlooking the obvious? "absolute path" would work in a file system context, but in a URL context I fear confusion with the full URL.

like image 639
Pekka Avatar asked Jun 27 '10 11:06

Pekka


3 Answers

RFC 3986 terms it as absolute-path reference:

A relative reference that begins with a single slash character is termed an absolute-path reference.

But you can say just absolute path or absolute URL/URI path.

like image 191
Gumbo Avatar answered Nov 12 '22 20:11

Gumbo


It probably depends on the context, that's called path-absolute in the grammar of RFC 3986 (Uniform Resource Identifier (URI): Generic Syntax). I think most people would call this an absolute path: that's also the terminology used by RFC 1808 (obsoleted by RFC 3986).

like image 45
Bruno Avatar answered Nov 12 '22 19:11

Bruno


Speaking in terms of URI as per RFC 2396, this just is a path, among scheme (http), authority, query and fragment (none in your case).

like image 1
Haspemulator Avatar answered Nov 12 '22 20:11

Haspemulator