Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can urls contain dots in the path part?

Tags:

url

Is this a valid URL? (from a standard point of view)

http://test.com/some/path/version/1.2/thing  
like image 707
Klaim Avatar asked Jul 21 '11 14:07

Klaim


People also ask

Is Dot allowed in URL path?

Adding the dot to the end of the domain name makes it an absolute fully-qualified domain name instead of just a regular fully-qualified domain name, and most browsers treat absolute domain names as being a different domain from the equivalent regular domain name (I'm not sure why they do this though).

Can a URL have multiple dots?

Yes A url with many dots is valid. However a domain name with multiple consecutive dots is not valid since the length of each label has to be more than 0. To be conversant with URL semantics, you would need to read: Which characters make a URL invalid?

What does a dot mean in a path?

A dot ( . ) can be part of a file or directory name including the first and last position. On UNIX a single dot in a path refers to the current directory and can thus always be resolved to a directory whose name is not . .

What is the path part of a URL called?

The path refers to the exact location of a page, post, file, or other asset. It is often analogous to the underlying file structure of the website. The path resides after the hostname and is separated by “/” (forward slash). The path/file also consists of any asset file extension, such as images (.


1 Answers

Yes. This is common for versioning web service interfaces. See spec: http://www.w3.org/Addressing/URL/url-spec.txt

like image 135
cjstehno Avatar answered Oct 10 '22 22:10

cjstehno