CodeIgniter Forums
CI Installation Layout - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: CI Installation Layout (/showthread.php?tid=2901)



CI Installation Layout - El Forum - 08-30-2007

[eluser]Glen Swinfield[/eluser]
I have recently posted a zip file of my preferred CI installation layout. It removes index.php from the url, takes system and application out of the web root and moves some bits around to more "suitable" places.

Templates are kept in the Web root with css and other design elements.

All configuration that is usually done through index.php and config.php can now be done through the new index.php file.

It may be useful to you - it may be not?

oh - and I'm not sure if this should be in "Ignited Code"?


CI Installation Layout - El Forum - 08-30-2007

[eluser]xwero[/eluser]
Have you tested it without the .htacces ? I'm asking this because i have a few servers that don't allow the use of .htacces.

I will test it myself if i can find the time because i like the idea of having a secure, less foldery setup from the start.


CI Installation Layout - El Forum - 08-30-2007

[eluser]Glen Swinfield[/eluser]
You will need to delete the .htaccess file and then add change

application/config/config.php line 26 from

Code:
$config['index_page'] = "";

to

Code:
$config['index_page'] = "index.php";

And you will probably need to find an alternative way prevent direct access to /www/design_elements/templates and errors.


CI Installation Layout - El Forum - 08-30-2007

[eluser]xwero[/eluser]
Ok thank you i will check it as soon as i can.