Anatomy Of A Domain Name and URL

55
Anatomy of a URL by Andy Wibbels http://andywibbels.com/

description

A quick guide on how domain names and URLs work.

Transcript of Anatomy Of A Domain Name and URL

Page 2: Anatomy Of A Domain Name and URL

A web address has many parts.

Page 3: Anatomy Of A Domain Name and URL

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

www.yourdomain.com

Here’s a domain name.

Page 5: Anatomy Of A Domain Name and URL

www.yourdomain.com

Let’s break it down into its many parts.

Page 6: Anatomy Of A Domain Name and URL

www.yourdomain.com

That thing on the end? That’s called a Top Level Domain.

Page 7: Anatomy Of A Domain Name and URL

Common top-level domains

Page 8: Anatomy Of A Domain Name and URL

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

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

www.yourdomain.com

Let’s take a look at the part‘between the dots.’

Page 11: Anatomy Of A Domain Name and URL

www.yourdomain.com

It doesn’t allow spaces or underscores.

Page 12: Anatomy Of A Domain Name and URL

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

www.your-domain.com

You can have dashes.

Page 14: Anatomy Of A Domain Name and URL

www.yourdomain12.com

Or numbers.

Page 15: Anatomy Of A Domain Name and URL

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

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

www.your-domain.com

So that was the part ‘between the dots.’

Page 18: Anatomy Of A Domain Name and URL

www.your-domain.com

Let’s look at the part ‘before the dot.’

Page 19: Anatomy Of A Domain Name and URL

www.yourdomain.com

The part before the first dot is called the sub-domain.

Page 20: Anatomy Of A Domain Name and URL

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

www.yourdomain.com

Make peace with that.

Page 22: Anatomy Of A Domain Name and URL

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

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

www.yourdomain.com

The default is ‘www’for ‘world wide web.’

Page 25: Anatomy Of A Domain Name and URL

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

www.mail.yourdomain.com

That isn’t necessary and may cause weird error messages.

Page 27: Anatomy Of A Domain Name and URL

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

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

www.yourdomain.com

So: sub-domain.

Page 30: Anatomy Of A Domain Name and URL

www.yourdomain.com

Domain.

Page 31: Anatomy Of A Domain Name and URL

www.yourdomain.com

Top-level domain.

Page 32: Anatomy Of A Domain Name and URL

www.yourdomain.com

Usually referred to as one big thing called ‘a domain name.’

Page 33: Anatomy Of A Domain Name and URL

http://www.yourdomain.com

So what’s this H-T-T-P business?

Page 34: Anatomy Of A Domain Name and URL

http://www.yourdomain.com

There are many ways for you to connect to a website.

Page 35: Anatomy Of A Domain Name and URL

http://

The most common used by browser isHypertextTransferProtocol

Page 36: Anatomy Of A Domain Name and URL

http://

Hypertext is a nerdy way of saying ‘web site stuff.’

Page 37: Anatomy Of A Domain Name and URL

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

http://

The colon and 2 forward slashes just make it look fancy.

Page 39: Anatomy Of A Domain Name and URL

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

http://www.yourdomain.com

Another piece of the puzzle!

Page 41: Anatomy Of A Domain Name and URL

http://www.yourdomain.com/stuff

Uh-oh. What’s this?

Page 42: Anatomy Of A Domain Name and URL

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

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

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

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

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

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

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

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

But at the end of the day, the important thing to remember is this:

Page 51: Anatomy Of A Domain Name and URL

www.yourdomain.com

Sub-domain.

Page 52: Anatomy Of A Domain Name and URL

www.yourdomain.com

Domain.

Page 53: Anatomy Of A Domain Name and URL

www.yourdomain.com

Top-level domain.

Page 54: Anatomy Of A Domain Name and URL

www.yourdomain.com

Usually referred to as one big thing called ‘a domain name.’