Welcome Guest, Not a member yet? Register   Sign In
index.html - can I take it out from CI in a safe way?
#9

(07-29-2016, 08:46 AM)Ivo Miranda Wrote: index.html is all over CI to avoid direct folder access I assume..

Is there a safe way to remove this? Maybe with .htaccess rules or something like that. What do you guys think about this?

I kinda hate having index.html all over my project...

Change your structure dir project like CodeIgniter4

Code:
application/
.. config/
.. controllers/
.. ..
public_html/index.php
system/

In your ../public_html/index.php file:

Code:
$system_path = '../system';

$application_folder = '../application';

Other reference about .htaccess for local or development you can see this example from  Phalcon Tutorial.
Reply


Messages In This Thread
RE: index.html - can I take it out from CI in a safe way? - by mixinix - 07-29-2016, 02:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB