Hard worker
Hard worker

Reputation: 4046

What is the name for the parts of the url specified between the forward slashes

www.example.com/part1/part2/page.html

www is the scheme

example is the domain

what is the correct term for part1, part 2?

And does that differ from page.html?

Upvotes: 0

Views: 2104

Answers (1)

CodeCaster
CodeCaster

Reputation: 151594

What you show is not an URI, it is missing a scheme. Also, www is not the scheme, it is part of the host www.example.com (the domain of the host being example.com). An example of a scheme would be http, so your URI would become:

http://www.example.com/part1/part2/page.html

Now /part1/part2/page.html is the path, separated by slashes into three segments, which seems to be the term you're looking for.

Relevant RFC: 3986.

Upvotes: 5

Related Questions