Cpanel Hosting

Friday, 8 February 2013

Directory Index Forbidden Error !!

If you get below in error in error_log
========================================
[Thu  Sept 13  02:09:32 2012] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /home/domainusername/public_html/
[Thu  Sept 13  02:09:32 20129] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /home/domainusername/public_html/
==================================================
Then you need to add below code in .htaccess file.
==================================
DirectoryIndex index.html
or
DirectoryIndex index.php
==================================
and then check your site.

No comments: