How do you organise your site?
My first site is small, so I've got all my html and icon files in the root, and just one sub-directory for my photo gallery pictures and thumbnails.
I'm working on my second site, and I'm wondering how people organise their sites (especially some of these HUGE sites!).
Shall I have a sub-directory for all graphics, or a graphics directory for each html page so I can see straight away where a graphic is used, shall I have downloads in a seperate directory ....
Does it take longer for a page to load if the files are in different directories (on the same site)?
How does everyone organise?
D Reuby
Mark Hensler posted this at 08:31 — 1st March 2001.
He has: 4,048 posts
Joined: Aug 2000
I've pretty much left the world of static pages...
But when I create a site with static pages, I generally do this:
<del>DIR </del> <del>Files </del>
/(root) index.html
/images/ (images for any HTML pages in root)
/link1/ link1.html
/link1/images/ (images for anything in /link1/)
/link2/ link2.html
/link2/images/ (get the concept for images?)
link1 and link2 are links on your homepage (or nav bar) that link to elsewhere on your site (contact us, products, sitemap, etc.). I create a folder for each section and make a HTML file with the same name. Images for that section go in another images dir in that folder. If your products page has multiple pages, they all go in the same folder (not seperate ones).... name them products.html, products2.html, etc.
In a word (maybe more than one..), I try to mimic my navigation in my file structure. It makes it easy to find things.
Mark Hensler
If there is no answer on Google, then there is no question.
lurch posted this at 19:08 — 1st March 2001.
They have: 7 posts
Joined: Feb 2001
I tend to put all images in an "images" directory. Then within that directory I structure the images and directories accordingly. With the files I put them in the logical directory structure. That way, you know where to go for the images, and you know where to go for the files.
you rang???
Maverick posted this at 00:10 — 2nd March 2001.
They have: 334 posts
Joined: Dec 1999
There isn't really a right or wrong way to structure things. An arrangement that's logical and natural for one person might seem random and overly-complicated for another. I've restructured things on my site several times as an arrangement that works for 100 files suddenly come up short when 500 are involved and that nifty 500 file arrangement becomes unwieldy when 5,000 files need to shoehorn into it. Just try to come up with something that keeps file types separate from each other, like different directories for pictures, HTML pages, multi-media, etc. From that basic layout, you can add sub-directories as the site grows and you need to better organize things. Just avoid the urge to have too many folders and directories. It makes updating, managing and troubleshooting the site a lot harder when you have 100 files spread across 75 different folders. About the best advice I can offer is to structure things in the way that seems most logical and efficient to you. You'll always find it easier to work that way rather than trying to adopt a system that's unnatural simply because somebody else likes to work that way.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.