• I installed WordPress 1.5 with no problems or errors but when I click View site from the admin it shows the directory listing instead of the blog. I saw another post that recommended adding an .htaccess file which I did to both the main site and the directory the blog script is in but it did not work. The contents of the .htaccess file are:
    AddType application/x-httpd-php .html .htm .php
    DirectoryIndex index.html index.php

    Can anyone help?

    Thanks,

    Frances

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Do you have in index.php file in the same directory as the rest of your WP files?

    DirectoryIndex index.html index.php
    usually goes into an Apache file.

    Create a file in notepad, write “Hello you” then save it as “index.html”
    Upload that to the wp directory where index.php is

    Does that show up ?
    If so, delete it and press ctrl-f5 to force a page reload.
    If your blog does not load, tell your host to add
    DirectoryIndex index.html index.php
    to the apache httpd.conf file

    Thread Starter frances

    (@frances)

    Hello you now shows

    you need to do as podz explained. httpd.conf needs to be modified:

    DirectoryIndex index.html index.php

    Thread Starter frances

    (@frances)

    Sorry I missed that. I have a Cpanel. Can I do that from there?

    I don’t think so (i don’t have Cpanel access at this machine). Just email your host and ask them the best way to edit your httpd.conf file.

    I had the same problem. I tried everything detailed here with no change. Any other directory I had defined as a site under apache came up as expected if an index.html was present. The only way I got around the problem was to change the name of my wordpress root folder. I’m still not clear on why this should be, but it does ring a vague bell.

    …and now, after giving that a go, I find the site comes up perfectly with the name changed BACK to wordpress. Dear me.

    I’ve got the same situation..
    We can’t do it through cpanel?
    I’m getting frustrated.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘View Site shows directory listing’ is closed to new replies.