Welcome Guest, Not a member yet? Register   Sign In
Moving index.php in separate folder by default ?
#1

Hi, All.

You know that the common structure of CodeIgniter now is:
Code:
/ -  Root folder
/application/ - App folder
/system/ - System folder
/index.php - most important index file..

This way always application and system folders are in the site root folder.
I know that there are htaccess restrictions but even this way its not the right way to have them structured.

I want to suggest  - perhaps even from CI 3.0 as its not a real new feature or upgrade..
To create one additional folder and to move inside it the main index.php file as: 

Code:
/ -  Root folder
/application/ - App folder
/system/ - System folder
/new folder(www or web or public or other)..
/new folder/index.php - most important index file.. and website Root

This way only 1 PHP file will be in a public path..

I am always making such structure on CI setup as I don't accept that the base structure is right. That is the reason to suggest this change here..

So what do you think about that ?

Regards
Best VPS Hosting : Digital Ocean
Reply


Messages In This Thread
Moving index.php in separate folder by default ? - by sv3tli0 - 11-24-2014, 04:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB