Welcome Guest, Not a member yet? Register   Sign In
Is it possible to move index.php in order to increase security?
#1

Hello folks! Smile

I'm new to CodeIgniter and I'm used to have a subdirectory like "public" or "web" in which I do only store the js, img and css along with the index.php and to which I point my URL in order to keep the user from digging deeper within the directories.
Is it possible to move the index.php to another directory level without breaking anything or should I better keep to the solution given in the documentation?
Thanks for answering and sorry for my English!

Greetings,
Mina
Reply
#2

Absolutely. All you need to do is update the $system_path and $application_folder variables in your index.php file.

http://www.codeigniter.com/userguide3/ge..._apps.html
Reply
#3

Your solution worked perfectly well for me, so thank you very much! Smile
Reply
#4

There really isn't a point to moving index.php for security as all CI requests route through it. The application and system directories can be moved and you just need to tell index.php where they moved to.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB