URL stands for Uniform Resource Locator, or in other words, the web address of an online resource, i.e. a web site or document.
And, based on the example URL from Matt Cutts' URL definitions, here's an example of a more complex-looking URL:
Web browsers display the URL in the address bar
Every website you visit has a URL. The following URL points to this article:http://doepud.co.uk/blog/anatomy-of-a-url
.The URL is created in one of two ways
- after clicking a link in a web page, bookmark or email
- by typing the URL directly into the address bar
And, based on the example URL from Matt Cutts' URL definitions, here's an example of a more complex-looking URL:
- Protocol
- The protocol declares how your web browser should communicate with a
web server when sending or fetching a web page or document. The most
common protocol is
http
which stands for Hypertext Transfer Protocol. - Another common protocol is
https
which stands for Hypertext Transfer Protocol Secure. You'll see this on secure pages, like shopping sites and log in pages. If you're visiting a site where you need to enter sensitive information, like bank details and passwords, make sure the protocol is declared ashttps
. This means your web browser encrypts any information you provide so it can't be understood by any phishers who try to intercept the page during transfer. - Some protocols you're less likely to see include
ftp
(File Transfer Protocol)pop
(Post Office Protocol),smtp
(Simple Mail Transfer Protocol) andimap
(Internet Message Access Protocol). If you want to know more here's a list of protocols. - Subdomain
- A subdomain is a sub-division of the main domain name. For example,
mail.doepud.com
andcalendar.doepud.com
are subdomains of the domain namedoepud.com
. - Domain name
- A domain name is a unique reference that identifies a web site on the internet, for example
doepud.co.uk
. A domain name always includes the top-level domain (TLD), which in Doepud's case isuk
. Theco
part is shorthand for commercial and combined.co.uk
is called a second-level domain (SLD). - Port
- The port number is rarely visible in URLs but always required. When declared in a URL it comes right after the TLD, separated by a colon. When it's not declared and in most cases where the protocol is http, port 80 is used. For https (secure) requests port 443 is used.
- Read more about port numbers in URLs.
- Path
- The path typically refers to a file or directory on the web server, e.g.
/directory/file.php
. - Sometimes the file name won't be specified, e.g.
http://doepud.co.uk/blog/
so a web browser will automatically look inside the/blog/
folder for a file calledindex
ordefault
. If neither can be found, a 404 Not Found error will usually be returned by the server. - Query
- A query is commonly found in the URL of dynamic pages (ones which are generated from database or user-generated content) and is represented by a question mark followed by one or more parameters. The query directly follows the domain name, path or port number.
- For example, have a look at this URL which was generated by Google when doing a search for the word URL:
http://www.google.co.uk/search?q=url&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a
. - The query part is
?q=url&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a
. - Parameters
- Parameters are snippets of information found in the query string of a
URL. With reference to the Google query above, the parameters follow the
question mark and are separated by an ampersand (&) character so
they can be understood individually and used to display content on that
page. The parameters are:
-
q=url
-
ie=utf-8
-
oe=utf-8
-
aq=t
-
rls=org.mozilla:en-GB:official
-
client=firefox-a
-
- Fragment
- A fragment is an internal page reference, sometimes called a named anchor. It usually appears at the end of a URL and begins with a hash (#) character followed by an identifier. It refers to a section within a web page.
Read more :
No comments:
Post a Comment