Hi,
I've been putting together a small web-app that will allow people to build a simple one page site.
my question is about the best way to organise the structure of the files and directories.
currently, I have something like this
/index.php ( main home page )
/sitefiles ( public site pages, divided into sub-directories )
/logic ( application logic, javascript, css, images.. )
/userfiles ( directory containing all files created for users )
/userfiles/username/ ( example directory - only contains index.php )
I had 2 possible plans:
use mod-rewrite to rewrite all requests to domain.com/userfiles/username - to domain.com/username
of course, excluding the "sitefiles" directory and sub-directories
the second idea was to find a way to do-away with the need to have a physical directory for each user - it only contains a simply php file which builds the page they have created - however, I'm not sure about the best way to go around this.
I just wanted to try and get the opinion of a few of the experts that frequent this forum - if you've got any questions, please just ask.
Thanks.