Support » Fixing WordPress » directory index versus index.php problem

  • Resolved monkeyslunch



    Parts of my website were recently hacked so I decided to just start over from scratch since it was time to do something new anyways.

    I’m having trouble remembering how to do a few things though, it seems.

    I am at
    I have my blog installed in a seperate folder than my root.
    It’s at

    I edited my htaccess to point to the blog/index.php page as the default page to load when someone visits the site.

    However, when trying to access individual directories like
    where it would normally load the index.php file automatically its defaulting back to loading the directory information.

    My htaccess file in my root folder looks like this:

    RewriteEngine on
    RewriteBase /

    ReWriteRule ^index/?$ index.php [L]
    DirectoryIndex blog/index.php

    <Files 403.shtml>
    order allow,deny
    allow from all

    deny from
    deny from

    And if you’re not quite sure what I’m talking about, I’m talking about how these two links should load the same thing:

    As well I’d like any other directory on the server to load an index.php file if there is no index.html, .htm, .shtml, default.htm, etc page in the directory.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You shouldn’t use any kind of redirects… WP doesn’t “like” it.
    If you have installed in a subdir (blog) and what it to be displayed at the root, follow:

    Ack! Of course, no wonder nothing rang any bells or made any sense.

    You, Moshu, are a life saver. Thanks a bunch! For now, this is resolved and I’ll message if I have more troubles.

    Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘directory index versus index.php problem’ is closed to new replies.