Home Advanced Code Paths - URLs - and URIs

Paths - URLs - and URIs

E-mail Print PDF
Learn some more webmaster lingo today. Here we'll show you paths, urls, and uri's. Check out the rest...

Paths

A path specifies the location of a file or directory (folder) on a computer. A simple path looks like this:

/user/jones/notes

The components of a path are separators (the "/" character) and file or directory names. There is always a "/" at the begining of a path to mark the top level or root directory. Each subsequent "/" in the path indicates the next level down in the computers directory structure. The last file or directory name in the path is the item that the path leads to. The example "/user/jones/notes" specifies that there is a file named notes that resides in a folder named jones that resides in a folder named user.

URL's

A URL specifies the location of a file on the World Wide Web. A simple URL looks like this:

http://www.yoursite.net/

A more complex URL looks like this:

http://www.yoursite.net/vote/in.php?id=1

The major components of a URL are the
Protocol - Indicates which internet service or protocol will handle the file. (i.e. ftp, http)

Domain Name
- A domain name contains the name you would lookup in WHOIS.

A domain name does NOT contain http:// or www.
www is what is called an ALIAS.

Thus my domain name is not http://www.yoursite.net or www.yoursite.net

My DOMAIN NAME is yoursite.net

Network Location - A unique name which identifies an Internet server or Internet domain.

A network location has two or more parts separated by periods.

Path - The folder containing the file.
File Name - The name of the file.

In the first example http://www.lilhangout.net/ no path or file name is specified. When no path is specified after the domain name the file resides in the root directory of the domain. When no file name is specified the file is generally assumed to be index.htm. Index.htm or index.html is the default file name for HTML pages.

URI's

A URI is kind of like a RELATIVE URL. It's real simple. Let's say our URL is /scripts/mastergate.html. The URI (relative URL would then be /scripts/mastergate.html). Pretty simple huh?

Just in case... let's see two more examples :

URL: http://www.yoursite.net/
URI: /
URL: http://www.yoursite.net/vote/in.php?id=1
URI: /vote/in.php?id=1

got it?

 

Domain Names

Sample image .com .info
.mobi .net
.org .tv .us
.biz .ws .name
.am .at .be .cc .cn .de .eu
.fm .jobs .jp .ms .nu .nz
.tc .tw .uk .vg .ASIA .ME

Website Hosting

Sample image We're the affordable, reliable place to host your site. And unlike the competition, there's no set up fee and no annual commitment.

24/7 Support

Sample image Our highly trained, courteous support staff is waiting to help. We'll resolve any issue to your complete satisfaction.