URL - Universal Resource Locator.
The URL can be thought as the address of each unique item on the Internet. The URL can take on three basic forms...
1. http://www.infosports.com - Notice the http: in the beginning of the URL. When present it tells your Internet browser that this URL is the complete address. So naturally any page or image on your website could begin with http: if you like. Fortunately for referencing things on your website there are shorter methods...
2. /abc/1234.shtml - Notice the / in the beginning. The slash tells the browser that this address references the beginning or "root" directory of the InfoSports website. For example let's assume your selected abc as your website abbreviation. So if you want to reference things on your website you could begin the URL with /abc. When you created your website the website software created sub directories within your site. There is an images or upload directory whose URL would begin with /abc/images, a "private" password protected directory /abc/private and (optionally) a directory for each of your tournaments /abc/1 for the first one /abc/2 for the second one, etc. Now, let's try to figure out what the URL of an uploaded picture whose filename on your PC is P1234567.jpg. The URL of the picture once uploaded is /abc/images/P1234567.jpg.
3. If there is no http or / in the front of the URL then it instructs the browser to reference an item in the current spot (or directory) that the page is coming from. Generally this form of URL is not used except for one area of the your website, the Photo Album. The Photo Album knows that all of its images are within the directory that is currently being referenced so in order to save your from typing the extra letters on the front of the URL you only need to reference the image. So, let's say you uploaded the same picture as before to the Photo Album for Tournament #1. The URL of the image could be /abc/1/P1234567.jpg. But within the Photo Album forms you would reference it only as P1234567.jpg. Now, lets say you want to reference that very same image on your home page. Your home page is in the "root" (or beginning) directory of your website so as you can see it is in a different directory than your image. To reference this image from your home page you would need to reference it as /abc/1/P1234567.jpg or if you are a glutten for punishment, you could reference it as http://www.infosports.com/abc/1/P1234567.jpg.
Edit This Article
|