• Clicking on “Visit site” from inside WordPress gives me just a directory listing of my “blog” directory. If I click on the index.php in the directory – I still get a directory listing. But, if I copy index.php to t.php (for example), then t.php works to show me my Blog. The other index.php files in the subdirectories of my blog directory have the same problem. I am running Apache on Suse Linux.

Viewing 3 replies - 1 through 3 (of 3 total)
  • add this to your .htaccess
    DirectoryIndex index.php index.html

    Thread Starter jspringr

    (@jspringr)

    Thanks for getting back to me!

    I created .htaccess in the “blog” directory along with its subdirectories, but nothing changed. It still works as before. Is there anything else I need in those .htaccess files, or in the http.conf file? Keep in mind that the php files work. For example, I can log in and then click on edit.php to get to the administration and post pages.

    Thread Starter jspringr

    (@jspringr)

    I fixed the problem by adding “index.php” to my DirectoryIndex line in my http.conf file. That previous setting (i.e., without the “index.php”) was overriding the .htaccess entries.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘All index.php files don’t work – other .php files work’ is closed to new replies.