Error accessing site/index when using test config file

I made some tests but can’t reproduce. I have not much apache knowledge. Maybe you should completely disable directory listing and default index files. I guess then it will work.

OK, it seems like the problem is something to do with this:

Do you know how I can integrate that code in to my htaccess for it to work on my localhost server?

Simply remove index.php from index files (mod_dir). Maybe you can set that option in htaccess directly?


DirectoryIndex index.html

Yeh I just done

DirectoryIndex index-test.php

in my htaccess file and it works now.

Oh yes that should do it as well. :)

Lol this was some crazy sh*t man. I initially thought it was to do with the widget in my layout, but eventually managed to pinpoint the problem! Thanks for the help guys! :)

But one thing I still don’t understand is when I completely remove the DirectoryIndex directive from httpd.conf file I still get this problem. Very strange.

hey GSTAR,

I think that is an Apache problem and you have to go to http.conf not to the .htaccess (you still do that)

But… why not changing the name of the index-test.php to index.php and index.php to index-backup.php?

Like that you dont need to play around with other settings.

Cheers!

EDIT: Wow! This post was quite long! didn’t see the second page! lol… Happy you found the solution.