Once you’ve finished testing the site on the production or test server is time to make sure that you won’t have any surprises from your evil “visitors”. So, try to put the application and system folders in a folder that is not accessible from the web. If you are on a shared server, you should put the index.php in “public_html” folder. After that, create a folder (maybe named “ci”?) on same level as public_html folder.
So, the structure of the files would look something like this:
-ci --application --system -public_html --index.php
Now, if you visit your “site” you should see the following error: “Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php“.
To resolve this issue, go to your public_html/index.php and in there change $system_path to where you moved your system folder. In our case that should be:
Do the same with $application_path: