PDA

View Full Version : index.php not accepted anylonger????


louboumian
10-20-06, 07:18 PM
My blog home page URL was reached, untill very recently, by typing:
myweb.net/blog
The server was able to pick-up the index.php file that resides in this directory.
Now I get an error page saying:

-----------------
Directory has no index file.
Browsing this site or directory without an index file is prohibited.
If you are the site's webmaster, you can remedy this problem by creating a default HTML page with one of the following names:


index.html
index.htm
default.htm
Default.htm
home.html
Home.chtml
NOTE: Filenames are case sensitive, i.e., Home.html is not the same as home.html
-----------------

Does anybody know what's going on here?

YvetteKuhns
10-20-06, 07:54 PM
The easy way would be to create index.htm that has a meta redirect to index.php. You can also disable the Directory Browsing Protection option provided by Endurance.

Somnifac
10-20-06, 09:03 PM
That strikes me as putting a band-aid on the site and ignoring the problem. It should see the index.php in the folder, as it does on all the sites I host. The only thing I can think to suggest is that you check to see that CGI is enabled, though if the site works when you access the index.php file directly, I wouldn't imagine that would be the problem.

mixerson
10-20-06, 09:38 PM
Hi Somnifac,

My site uses index.php - I just checked it and it still works. Maybe some problem with the .htaccess file? (just a guess)

justinr
10-21-06, 12:11 AM
index.php should work fine, it could be something with .htaccess file, but if your having excessive problem with it, I would suggest contacting support.

louboumian
10-21-06, 04:58 AM
ok, problem solved: It was indeed a problem with .htaccess. Not the one in that directory (/blog) but in the root, where I recently put a DirectoryIndex instruction to bypass the index.html and go to a specific html file. I would have never thought that was to affect the behavior of the server on subdirectories containing their own .htaccess file though.

I have added a DirectoryIndex instruction in the .htaccess of my blog directory pointing at index.php and all is back to normal.

Thanks all for your suggestions! You pointed me in the right direction. ;)