At home, entropy reigns supreme. My friends will attest that a visit to Heidiland—replete with obstacles ranging from art supplies to Pisa-like stacks of books—is an adventure that would be considered overly-taxing by the neat freaks of the world. My computers, however, are another story. Given that my active Web development folder has over 14,000 files within, and that this is but one of many folders on one of three computers, I've had to take a more logical approach.
Organizing files in a methodical manner is even more important when it comes to the files that make up a Web site. On the Web server this structure must make sense not only to me, but also to end users and anyone who contributes content to the site. Below I'll walk you through the concepts I use to organize my files. You may find that another system works better for you and the needs of your site, but if you consider the following issues it may help you enhance your system as well.
Try to keep all files related to the site in this directory. While Dreamweaver and other programs will let you create links to files almost anywhere on your computer or network, these stray files can cause problems when the time comes to upload the site to the Web server. I find it is also helpful to include working files such as Word and Photoshop documents here, so that I can refer back to them as necessary.
In my earlier entry, Organizing, acquiring, and creating content for your website, I wrote about creating a site map that would organize your content and navigational structure. The fictional Department of Cartooning's map showed us 6 main content areas that would be reflected in our menus. Thus when I began building this site, I started by creating folders for each of these content areas. I also created three additional folders; css, images and ssi, in which I store my cascading style sheets, photographs, and server-side includes files. Categories such as Academics and Resources that have multiple subcategories will similarly have multiple subfolders within. As I build my site I'll store my files in the appropriate folders—rather than loose in one main folder—for the following reasons.
Descriptive filenames help you recognize what content the file contains and offer clues to users who stumble upon a page via a search. However, overly descriptive filenames create very long url's. To reduce url size without losing meaning I recommend:

When you create links between the pages on your site, the path to the links is predicated on the organization of your files and your directories. If you link to pages outside of your main directory, then these links won't work when you upload your site to the server. If you keep all of the files and directories for your site in one parent directory, you won't have this problem.
Although most of your directories and files will be the same on your local directory as they are on the server, there are some exceptions.
As you've now realized, all of these suggestions are fairly simple and easy to implement. But as your site grows from 4 to 40 or perhaps even 400 pages, you'll find that a little bit of planning in the beginning will make the site easier to use and maintain over time. If you have additional tips and suggestions regarding ways to organize files, please share them below.
Comment by Jerrod — August 4, 2006 @10:57 pm
Comment by Hostcento — February 21, 2007 @2:18 pm
Comment by Web development — March 6, 2007 @6:49 am
Comment by Internet Marketing Agency — September 10, 2007 @2:00 am