![]() |
Without proper planning, it is hard to find items when you update and maintain the site. Also, file names may inadvertently match causing numerous problems. In addition, server performance is lower if the site is poorly planned. Moreover, it is important to plan carefully because, if you have to change your filing system later, then people's bookmarks won't work. Here are some suggestions:
Major navigation areas should be in folders like this.
Root Folder:
Index.html
/nav_area1
/nav_area2
/assets
/images
/sounds
/flash5
/video
/java
/scripts
/common
/css
/include
These are files or file fragments of code that normally present parts of a
web page. This code is used multiple times. Ex: Copyright information, privacy
statements. or template.asp. Files end in .inc or .asp. From a code reuse perspective,
it is helpful to have one piece of code -- not 100. This makes
changes much faster and the site easier to maintain. This is what the code looks
like:
<!--#INCLUDE file="../common/fred.inc" -->
fred.inc contains
<tr>
<td>copyright
</td.
</tr>
</table>
It is wise to create links to the same reusable image file as often as possible. This serves two purposes:
1. Images are cached by the browser, so pages load more quickly.
2. If one needs to change the image, you change one file -- not one hundred.
Last updated 7/23/01 by Cathy Buckingham