Click to See Complete Forum and Search --> : Site building standards: directory structure?


salor
05-29-2006, 10:53 AM
What directory structure do you have to use and how do you organize your site on a basic level?

While learning html, php, javascript, css and mySQL I gradually came to realize the newest techniques. I started with static building using frames and tables, then later on I became familiar with the newest standards using css instead of tables, and php for dynamic content. However, I'm still a little unsure how all these new developments relate to the basic structure of a site, or maybe I never knew much about it either, but the use of php certainly calls for different methods. Since I use Linux, with Apache running on it for testing purposes, I'm well aware that index.html is still the first page that you get served with from the Document Root, but the index_files/ directory that would originally follow is probably not present anymore, you redirect index.html and then "who knows what?"

The bottomline is: how should I organize my site so that it would be easy to work with and that there would be place for future growth too? I'm not only talking about directory structure, but the way your site builds up is probably in a close relation with where its components are phisically stored, otherwise it would become unmanageable.

ray326
05-29-2006, 04:41 PM
The index_files directory is just there to support multiple languages so it goes away on 99.9% of all sites. Usually you just add an index.php into the index file list and make every page a PHP page. The overall site structure doesn't change much at all. In the htdocs you still normally have images/, scripts/, theme/||styles/||css/ and then content-related directories if needed.

salor
05-30-2006, 12:40 AM
I thought it would be something like this, but just like I said, before I only really built some very basic static pages.

Thanks for the answer