[eluser]Unknown[/eluser]
Hi guys, I'm a student from the third year of system development course in Brazil.
Me and my friends started a small business for develop for applications, but I'm the only one that develops for web (php).
I have almost no experience, we have at least two sites to deliver (one is almost ready, but its not whit the codeIgniter pattern),
recently i started to use codeigniter,and I'm amazed whit it's simplicity and power,
Is there a way that i can organize my folders on the server to be like this:
/root
--'private'
----
----'System' (CodeIgniter System Folder)
----'main_domain' (this is my application folder)
----'client_site_1' (this is my application folder)
----'client_site_2' (this is my application folder)
----
--'www||htdocs' (public)
----'main_domain' ^(index.php | assets | public_things)
----'client_site_1' ^(index.php | assets | public_things)
----'client_site_2' ^(index.php | assets | public_things)
'' = is a folder
() = what it is
^() = what has inside
*The big question is: Can i make each domain redirect to it's folder (example.com -> example_folder)?
*Where would i put the .htaccess file, will it be only one? Who much would i use?
*Where would i put the error html, and the other annoying auto generated by the server files? (404.html, 405.html, cgi_folder)
how would i write then? (I'm not particular good whit the apache syntax)
I like this way because it seams safe,
and when there is a new project, i just create the folders whit the client name,
then send the guy from bluehost redirect the url to the folder (don't know how to do it)
I would like to keep this folders the cleanest possible
AND THE MOST IMPORTANT: I'm kind of crazy whit patterns and organization (i need i pattern to live)