homepage Welcome to WebmasterWorld Guest from 54.224.202.109
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Directory Structure Vs all files in root directory
which is a better and more optimized option
kunwarbs




msg:4450759
 10:44 am on May 8, 2012 (gmt 0)

I am developing a website which will have almost a million pages. The pages will be generated through mysql database and cached into static HTML files to minimize mysql server overload.

Now the question is:
1. Is it better to generate all the files in the root say http://www.example.com/page1.html and so on OR is it better to create a directory structure and generate the html files in different directories?

2. Which is a better option in terms of minimizing server load or seek time?

 

g1smd




msg:4450767
 11:17 am on May 8, 2012 (gmt 0)

Putting files in folders might imply those folder names will also appear in the URLs.

Stop right there. The URL structure does not have to match the folder structure in any way whatsoever.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved