|
URL Addressing and Directory Structure
Lessons learned by bitter experience. Organize your folders or directories with a plan for expansion from the beginning. Otherwise, you will be rewriting internal links as you organize your files into folders.
You say directory, I say folder....
Let me state at the outset, that in the following article (and likely in class as well), I will use the terms directory and folder INTERCHANGEABLY (meaning the organized sections within a hierarchical file system on a personal computer).
In the beginning there was a root directory...
The HTTP server software (be it Apache, or MacOSX Server, or IIS, or whatever) expects to find all your files within or in folders within your root directory. Files cannot be placed onto your computer from the Web unless you enable FTP and give someone the password to connect to you using WS_FTP, Filezilla, Fetch, or a similar utility.
Group related files together.
HTML files and the graphics that accompany them should reside within the same subdirectory if possible. If a graphic is used repeatedly in many files (for example, bullets or other standard icons) you might want it in your root directory for ease of writing anchors. It is possible to link to graphics in other folders, but.....you have to remember the path when writing the anchor!
Enough is enough...
You can "folder-ize" your folders too much. A folder should not contain 100 separate files, but 20 or 30 is ok. The purpose of a folder is to group like files to prevent having to scroll through your entire hard disk to find a file. And,... on a modern computer that scrolls at light speed, that is not a small problem.
After editing a file, make sure you SAVE AS to the right folder...
SimpleText, Notepad, and other text editors are nice tools; however, they may try to save your file in their resident folder, which needless to say, will wreck your links!
| HORT 605 Index | Aggie Horticulture |
|