CodeIgniter Forums
moving index.php file in to system folder - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: moving index.php file in to system folder (/showthread.php?tid=18108)



moving index.php file in to system folder - El Forum - 04-25-2009

[eluser]runrun[/eluser]
Hi,

For moving the index.php to system folder, which action should i take note of ?


moving index.php file in to system folder - El Forum - 04-26-2009

[eluser]Dam1an[/eluser]
All you need to do is set the 2 paths in the endex.php to reflect the changes
But more importantly, why do you want to do this, its normally a better idea to move the system folder outside of the web root


moving index.php file in to system folder - El Forum - 04-26-2009

[eluser]jdfwarrior[/eluser]
You'll need to change your .htaccess as well to reflect the new location.

Dam1an: He didn't say he was leaving the system folder in the web root. He just wants to have the index.php located within system. I also dont understand why he would wanna do that, but, to each his own.


moving index.php file in to system folder - El Forum - 04-26-2009

[eluser]Dam1an[/eluser]
[quote author="jdfwarrior" date="1240794374"]
Dam1an: He didn't say he was leaving the system folder in the web root. He just wants to have the index.php located within system. I also dont understand why he would wanna do that, but, to each his own.[/quote]

How would an index.php not as a web root act as the front controller?


moving index.php file in to system folder - El Forum - 04-26-2009

[eluser]jdfwarrior[/eluser]
It might not. I was just saying that he didn't specifically mention it. It would seem that if your using a mod rewrite though, that the index file could technically be anywhere you want it to be. As long as paths are adjusted to work properly in relation to the location of that index.php file.