CodeIgniter Forums
Directory access is forbidden. - 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: Directory access is forbidden. (/showthread.php?tid=57930)



Directory access is forbidden. - El Forum - 04-27-2013

[eluser]Unknown[/eluser]
Hi im not sure whats happened but while working on a test site so that i can learn how to use the framework when i goto the base dir it comes up with 'Directory access is forbidden.' but if i type index.php on the end it all works fine! Im a complete newbie to this hence trying to teach myself the framework. Ive read through google but its not helped me unless ive missed something...

Any help or suggestions would be greatful

Cheers
Chris


Directory access is forbidden. - El Forum - 04-27-2013

[eluser]Harold Villacorte[/eluser]
You need to to configure index.php as directory index. If you are using .htaccess just add the folowing line:
Code:
DirectoryIndex index.php



Directory access is forbidden. - El Forum - 04-27-2013

[eluser]Unknown[/eluser]
That worked like a charm.
Thank you for your help...