Organizing site file and folders

It is a good idea to organize your site files into folders, but be careful you don’t make too many sub folders in your site. Too many sub folders can make your site just as unorganized as having no sub folders.

Consider a site like this:

unorganized1

There are files in the root directory that are unnecessary or unclear as to what they are used for. Lets also take a look at our image management.

unorganized2

Step 1 to clean this up will be to move site files (.html, .php, etc) into more appropriate folders. For example we can take party.htm, part2.htm, and party3.htm and put them into a folder called “party”.

organized2

Now our urls look like this: http://yoursite.com/party/party2.htm

As for the images, this is matter of preference. You’ll want to decide how much division is need to make it as easy as possible to update and maintain. In our example all of the site file were in one folder called “images”.

We can clean this up by adding a few more folders and making sure our file names don’t have any spaces, special characters, etc.

organized1

In the organized site, images are located in one central folder, and all site files are organized using a sub folder system that is easy to understand and maintain.

 

One Response to “Organizing site file and folders”

  1. I have been looking looking around for this kind of information. Will you post some more in future? I’ll be grateful if you will.

Leave a Reply