Pine Tree Folk School Banner



SEARCH
THIS SITE

Folk School Home

HelpNet Home

The Answer Pages

HelpNet Web Authoring Workshop
Handout #2 May 2001

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:

  • For UNIX/LINUX Web servers (used by most ISP’s), the file needs to be named “index.html” (not “index.htm”).
  • For Windows Web servers (less common, but used by Bairnet), the file needs to be named “default.html.

(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:

directory structure screenshot

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.

blue starblue starblue star

Pine Tree Folk School
RR 2, Box 7162
Carmel, ME 04419
207/848-2433
E-mail: info@ptfolkschool.org

June 26, 2001