Download - Anatomy Of A Domain Name and URL
![Page 1: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/1.jpg)
Anatomy of a URL
by Andy Wibbels
http://andywibbels.com/
![Page 2: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/2.jpg)
A web address has many parts.
![Page 3: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/3.jpg)
Understanding which parts do what can help you better understand how your readers and search engines see
your site.
![Page 4: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/4.jpg)
www.yourdomain.com
Here’s a domain name.
![Page 5: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/5.jpg)
www.yourdomain.com
Let’s break it down into its many parts.
![Page 6: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/6.jpg)
www.yourdomain.com
That thing on the end? That’s called a Top Level Domain.
![Page 7: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/7.jpg)
Common top-level domains
![Page 8: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/8.jpg)
Each country has it’sown top-level domain:
Full list at http://en.wikipedia.org/wiki/Country-code_top-level_domain
![Page 9: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/9.jpg)
www.yourdomain.com
So that’s the top-level domain, the part after the ‘dot’ and before the
‘everything else.’
![Page 10: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/10.jpg)
www.yourdomain.com
Let’s take a look at the part‘between the dots.’
![Page 11: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/11.jpg)
www.yourdomain.com
It doesn’t allow spaces or underscores.
![Page 12: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/12.jpg)
www.yourdomain.comwww.YourDomain.com
www.YOURDOMAIN.com
It is not-case sensitive. All of the above go to the same place.
![Page 13: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/13.jpg)
www.your-domain.com
You can have dashes.
![Page 14: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/14.jpg)
www.yourdomain12.com
Or numbers.
![Page 15: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/15.jpg)
www.yourdomain12.com
Together with the top-level domain. This is what most people mean when
they talk about ‘a domain name.’
![Page 16: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/16.jpg)
www.your-domain12.comwww.your-domain12.netwww.your-domain12.orgwww.your-domain12.au
These are all different domain names, that might be owned by
different people.
![Page 17: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/17.jpg)
www.your-domain.com
So that was the part ‘between the dots.’
![Page 18: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/18.jpg)
www.your-domain.com
Let’s look at the part ‘before the dot.’
![Page 19: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/19.jpg)
www.yourdomain.com
The part before the first dot is called the sub-domain.
![Page 20: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/20.jpg)
www.yourdomain.com
Yes, you’re right. It doesn’t make sense that it is ‘sub’ and is first as you
read it out loud.
![Page 21: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/21.jpg)
www.yourdomain.com
Make peace with that.
![Page 22: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/22.jpg)
www.yourdomain.commail.yourdomain.comblog.yourdomain.comstuff.yourdomain.com
Sub-domains allow you to channel different bits of traffic to different
parts of your company.
![Page 23: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/23.jpg)
www.yourdomain.commail.yourdomain.comblog.yourdomain.comstuff.yourdomain.com
All of these sub-domains are controlled by the same person that
owns the domain name.
![Page 24: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/24.jpg)
www.yourdomain.com
The default is ‘www’for ‘world wide web.’
![Page 25: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/25.jpg)
www.mail.yourdomain.com
A common mistake is adding the ‘www’ if there is already a domain
name.
![Page 26: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/26.jpg)
www.mail.yourdomain.com
That isn’t necessary and may cause weird error messages.
![Page 27: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/27.jpg)
yourdomain.com=
www.yourdomain.com
Depending on how a site is setup, you don’t have to type in the ‘www.’
![Page 28: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/28.jpg)
yourdomain.com≠
www.yourdomain.com
Other times they are different.This small detail may drive you batty when troubleshooting so be vigilant.
![Page 29: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/29.jpg)
www.yourdomain.com
So: sub-domain.
![Page 30: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/30.jpg)
www.yourdomain.com
Domain.
![Page 31: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/31.jpg)
www.yourdomain.com
Top-level domain.
![Page 32: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/32.jpg)
www.yourdomain.com
Usually referred to as one big thing called ‘a domain name.’
![Page 33: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/33.jpg)
http://www.yourdomain.com
So what’s this H-T-T-P business?
![Page 34: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/34.jpg)
http://www.yourdomain.com
There are many ways for you to connect to a website.
![Page 35: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/35.jpg)
http://
The most common used by browser isHypertextTransferProtocol
![Page 36: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/36.jpg)
http://
Hypertext is a nerdy way of saying ‘web site stuff.’
![Page 37: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/37.jpg)
http://
The http:// tells the web server how to respond to the request to view a
particular web page or file.
![Page 38: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/38.jpg)
http://
The colon and 2 forward slashes just make it look fancy.
![Page 39: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/39.jpg)
http://
Yes, the direction of the slashes matters.If they lean to the right – into the direction you’re reading, they are forward slashes.
If they lean to the left – they are backslashes.
![Page 40: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/40.jpg)
http://www.yourdomain.com
Another piece of the puzzle!
![Page 41: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/41.jpg)
http://www.yourdomain.com/stuff
Uh-oh. What’s this?
![Page 42: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/42.jpg)
http://www.yourdomain.com/stuff
This tells the website, I want to see your folder of stuff.
![Page 43: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/43.jpg)
http://www.yourdomain.com/stu_ffhttp://www.yourdomain.com/1 23http://www.yourdomain.com/FuN
This folder on the webserver can be case sensitive and can contain spaces and underscores. It is separate from the
domain name system.
![Page 44: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/44.jpg)
http://www.yourdomain.com/stuff
This part points us to the server. This part tells us what to get once we’re there.
![Page 45: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/45.jpg)
http://www.yourdomain.com/stuff/something/important.pdf
The path to these files can be as long as it needs to be.
This part points us to the server. This part tells us what to get once we’re there.
![Page 46: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/46.jpg)
http://www.yourdomain.com/stuff.xls
This tells the website, I want to see a spreadsheet called stuff.xls.
![Page 47: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/47.jpg)
http://www.yourdomain.com/stuff.htm
This tells the website, I want to see a webpage called stuff.htm.
![Page 48: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/48.jpg)
http://www.yourdomain.com/stuff
If there is no file requested – just the folder – the server may respond with
the ‘index’ of that folder.
![Page 49: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/49.jpg)
http://www.facebook.com/profile.php?id=505504719
Sometimes a URL has variables in it that tell the site what to do. Here is the full URL to my Facebook profile.
The browser talks to Facebook and asks for the profile.php file
the profile.php file is a script and looks for a variable called ‘id’ and that is how it knows what Facebook profile to show.
![Page 50: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/50.jpg)
But at the end of the day, the important thing to remember is this:
![Page 51: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/51.jpg)
www.yourdomain.com
Sub-domain.
![Page 52: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/52.jpg)
www.yourdomain.com
Domain.
![Page 53: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/53.jpg)
www.yourdomain.com
Top-level domain.
![Page 54: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/54.jpg)
www.yourdomain.com
Usually referred to as one big thing called ‘a domain name.’
![Page 55: Anatomy Of A Domain Name and URL](https://reader034.vdocuments.net/reader034/viewer/2022051413/554bb3d3b4c9053a298b46a4/html5/thumbnails/55.jpg)
Thanks!Let’s connect:
http://andywibbels.com/