Web Hosting Talk







View Full Version : How to setup directories and site content - best practices


cvillard
06-28-2004, 06:05 PM
I have built a few websites and different ways each time. I would like to see what other people find the easiest to keep updated.

So say I have website that has 3 sections, home, products, support for instance. Is it best practice to have a Virtual Directory (as bad as it looks I am going to use VD from now on) for each section? Say //server/products //server/support and so on. This meaning I would have to copy my CSS and scripts files to each directory and update each directory seperate.

Or the other option is to have all .htm files and such in the main VD and work out from there.

Just want to see what others are doing.

alpha
06-29-2004, 01:46 AM
It really depends... how big is the site?

Let's say you have home, products, and support... if those three sections of have sections of their own: ie. sections within sections within sections; then it would be easier to organize them in their own directories.

If the three sections are simply one static web page... there's really no need to have their own directories.

Organization is also dependent on what you are most comfortable with...

Also, you don't need to copy the CSS files into each directory. You can refer to the parent directory:<LINK REL=StyleSheet HREF="../style.css">