I have a file index.php here:
http://localhost/widget_corp/explore/home/
but when I type this path and press enter It doesn't open index.php hence, if I type
http://localhost/widget_corp/explore/home/index.php
It opens ! What may be the problem ?
Edit: I also have a index.php file here:
http://localhost/widget_corp/explore/staff/
and when I type this path and press enter it opens index.php
then whats the problem with home directory ?
You need to set the DirectoryIndex
file of your webserver (I assume apache now):
DirectoryIndex index.php
in httpd.conf
.
Try adding the following line to your .htaccess
file:
DirectoryIndex index.php index.html
If you are using apache you need to set DirectoryIndex
take a look at your httpd.conf
. there should be a line named DirectoryIndex
wich controls this. It should read like:
DirectoryIndex index.html index.htm default.htm index.php index.pl
May be you have a file name index.html in the same path. Or you don't have directory index.
Removing .htaccess from root folder helped me.