+ 1
Difference between domain and url
2 Answers
+ 2
- Domain name is a name linked to an ip adresss using DNS
- URL : "Uniform Resource Locator" is the standarized way for locating resources on the web it is made by :
* scheme : protocol to be used (ex : https)
* host : ex www.google.com
* port : optional , if u didn't specify a protocol I think
* path : the file that u want from the server (ex : /files/dir/epic.html)
* query string : a collection of arguments to the file that u requested , it my be empty
it's has this format : scheme://host:port/path?query
+ 1
URL is the whole instructionto get any resource it has several parts domain is one of them URL in normal have protocol domain path.
http://www .google. com/index.html
domain