andy18
11-22-2002, 06:41 PM
Hello,
I was trying to enable DirectoryIndex in my .htaccess ,but it is not working.I checked the cpanel error log file and it shows "DirectoryIndex not allowed here"..
What should I do ?
Andy
if you have access to httpd.conf then try modifying it
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.php index.shtml index.phtml
</IfModule>
andy18
11-22-2002, 07:02 PM
Thanks for the favorable reply.
Yup.I have checked on the httpd.conf ,below is the line :
<IfModule mod_dir.c>
DirectoryIndex index.html index.wml index.cgi index.shtml index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml i$
</IfModule>
Andy
andy18
11-22-2002, 07:04 PM
Below is the code I use in the .htaccess :
AddType application/x-httpd-php hello
DirectoryIndex index.php index.html
Do I miss out something?
I'm not sure if you can set DirectoryIndex in .htaccess, I would recommend setup everything right in httpd.conf (if you can write in it)