CodeIgniter Forums
Safe to delete all the index.html if index.php located to a public_html inside the application ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Safe to delete all the index.html if index.php located to a public_html inside the application ? (/showthread.php?tid=41158)



Safe to delete all the index.html if index.php located to a public_html inside the application ? - El Forum - 04-29-2011

[eluser]Rushino[/eluser]
Hello,

(Sorry if this is a stupid question) I was just wondering to be sure.. if it was safe to delete all the index.html if index.php is relocated to a public_html directory inside the application ?

Thanks!


Safe to delete all the index.html if index.php located to a public_html inside the application ? - El Forum - 04-29-2011

[eluser]mdvaldosta[/eluser]
If a folder is in public_html or above, you need to have an index file (index.html, index.php etc) to prevent someone from seeing the contents of the folder. It's only safe to remove index.html files if you have another index file in there, or it's not in a publicly viewable web space.