Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter Setup

I am currently configuring my remote server for CodeIgniter however I'd like to store it like this.


and only store index.php in public_html

Is this possible to move index.php up one level and have it bootstrap all the files necessary to run the application?

Yes, it is.

Quote:If you wish to increase security by hiding the location of your CodeIgniter files you can rename the system and application folders to something more private. If you do rename them, you must open your main index.php file and set the $system_path and $application_folder variables at the top of the file with the new name you’ve chosen.

For the best security, both the system and any application folders should be placed above web root so that they are not directly accessible via a browser. By default, .htaccess files are included in each folder to help prevent direct access, but it is best to remove them from public access entirely in case the web server configuration changes or doesn’t abide by the .htaccess.


Theme © iAndrew 2016 - Forum software by © MyBB