• Resolved Kate

    (@katendarcy)


    I actually came across this issue a while ago, but it eventually sorted itself out. (Okay, I know it actually didn’t do it itself, but something changed and it was working. : ) But because of another issue I faced earlier, I had to make a fresh install. And now, after that, I have the same issue: index.php is just a list of directories. And, so everyone knows off the bat, I do have index.php in the DirectoryIndex list in httpd.conf. Is there anything else that can cause this?

    In addition, if you go to view something from the dashboard, you can get to a post or a page, but previews don’t work (,I’m assuming because they use index.php), and attempting to navigate back to the home page through links in the blog takes me right back to the directory list.

    I’ve spent quite a bit of time all together searching for an answer, and feel a bit stupid because it’s probably something easy that I should know as a developer. But I don’t know what it could be. Any thoughts? Thanks in advance!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Here’s the list normally recommended:

    Solution 1
    If allowed by your host, putting this in an .htaccess file will solve the problem:
    DirectoryIndex index.html index.htm index.php

    Solution 2
    Some hosts allow you to make a change, via their hosting control panel, to the DirectoryIndex. It’s typically described as Indexes or Index documents, but may also require you to type something like
    DirectoryIndex index.html index.htm index.php
    or specify index.php as an index type file.

    Solution 3
    Instruct Apache to treat index.php as an index file. If you own the server, or have access to the http.conf file, simply modify the DirectoryIndex line in httpd.conf to:
    DirectoryIndex index.html index.htm index.php

    Solution 4
    Contact your host
    —————-

    You did restart apache after making the changes to http.conf?

    Thread Starter Kate

    (@katendarcy)

    Thanks for your response. As I stated, I actually do have index.php in my config file already. That’s what’s puzzling me. Any other ideas? I appreciate it. : ) (Also, I should mention this is my local install. WP 2.7 and Apache 2.2 on Vista)

    Did you install wordpress using another domain? In that case you have to open your mysql database “wp_options” table and replace all old url reference to new domain. I got such issue before.

    Thread Starter Kate

    (@katendarcy)

    No, it’s a totally fresh install… new database included. Also, it’s just installed locally: localhost/wordpress . Thanks for the suggestion, though.

    Thread Starter Kate

    (@katendarcy)

    I tried re-installing and playing around with it a little bit, but still no dice. I thought I’d mention, though, that you can only view pages, posts, etc. if the permalinks are not set to default. (Trying to navigate to index.php directly or through a link in the site still doesn’t work either way.) Does that give anyone any ideas?

    hi,

    i’m having a similar problem. everything was working GREAT (index.php) and i had just installed a forum and was working away… forum worked fine so did the index page until probably an hour later it just stopped!

    weird thing is… ONLY THE INDEX page doesn’t work meaning it still loads up the entire theme (header, sidebar and footer included) HOWEVER the custom text i had earlier within the index.php file is replaced with the 404 “page not found” message.

    so essentially somehow my index is working but it’s not LOADING up??? i’m so damn confused… have been searching HOURS online for a solution and still stuck.

    I even uninstalled the forum, and copy pasted the previous index codes and nothing’s changing…. i have no idea what’s going on 🙁 usually i’d be able to figure it out but i’m stumped on this one.

    any help would be appreciated!

    I am also experiencing the same problem. I uploaded WordPress yesterday and everything seemed to be working. Today, there is nothing, even though all the files are still there in my blog subdirectory. I contacted my server support group, and they are stumped (or at least the technician I chatted with was stumped).

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Index.php Not Working’ is closed to new replies.