Understanding the Types of URL Links

When creating websites, you will have pages, images and other files that make up the site and the content. Getting everything to display on your site is a matter of styling and coding, but when you have sub-directories containing your content you need to get your paths right.

Understanding the different path types is particularly important if you plan to use an server side includes. These included files often feature images or navigation, perhaps both in the case of graphic buttons. If you plan on putting things in sub-directories or folders and reference them from elsewhere then the issue of paths is vital. Without getting your paths right you will have a website that is full of dead links.

You may have heard the terms absolute and relative URLs. An absolute URL is one that often points to a page outside of the current website. It uses absolutely every bit of information about where the page or file is located, including the type of file, the domain name, any directories it may be in and the name of the file itself. An example would be http://www.designermagic.co.uk/blog/index.php. A relative URL can be either document or site relative. Document relative means that points to a file in the same directory as itself. Site relative looks for files by starting at the root level or beginning of the domain name.

An article explaining this in more detail is available here:
http://www.motive.co.nz/glossary/linking.php

other page


What do you think?

It's good to talk!

Your email address will not be published.