![]()
|
|
HelpNet
Web Authoring Workshop Tips on Web Site File and Directory Structure There are many ways to arrange your site’s files, but following these simple guidelines will make your site easier to maintain and save you a lot of time and aggravation. (1) Home page file name. The home page file needs a special name if you want people to get to it without typing out the whole file address. For instance, if we called the PICA Web site home page file “home.htm,” then people would have to type “www/pica/ws/home.htm” into their browser to get to the site. Since we want them to find PICA by just going to “www.pica.ws” we need to name the file as follows:
(2) Directory structure. You can put all of your files – html, graphics, style sheets, etc. into a single directory. However, this can get unwieldy very quickly. For instance the PICA site, which is fairly small and simple, has about 300 files. It is much easier to keep track of and maintain a site when you break the site into multiple directories corresponding to the main divisions in the site. For instance, here is PICA’s directory structure:
Notice there is a separate directory for images. If you have images that are only used in one section of the site (for instance, “ethical”), then you can create an “Images” subdirectory within the “ethical” directory. A year from now, when you’re working on the site and trying to remember which images are used where, you’ll be glad you did this.
Pine
Tree Folk School |
|