WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wp-admin/index.php working, wp-admin getting 404 (6 posts)

  1. tydende
    Member
    Posted 5 years ago #

    Hello,

    Started working on a new site, and when I type in any php file in the wp-admin folder, it works fine. However when I only type in wp-admin, I get a 404 error.

    http://www.runwithreza.org/wp-admin
    http://www.runwithreza.org/wp-admin/index.php

    I could get around that, but I'm having access issues now with cforms as well and figure that they may be related.

    Any ideas why the wp-admin would bring up a 404?

    Thanks

  2. Samuel B
    moderator
    Posted 5 years ago #

    maybe your host doesn't have index.php enabled for directories

  3. tydende
    Member
    Posted 5 years ago #

    Hey Samboll,

    Thanks for the response.

    I do have an index.php in the root folder, with
    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

    and if I delete the home.php file within the theme (that is acting as my homepage file), it does recognize the index.php file in the theme folder. Would this contradict the host issue, or no?

    I haven't had this issue before, so not sure.

  4. Samuel B
    moderator
    Posted 5 years ago #

    the home.php shouldn't conflict
    what I'm getting at is the host may very well have index.php enabled in the root but not directories - like /wp-admin

    add this to your .htaccess file in the root on 1st line
    DirectoryIndex index.php index.html

    should work

  5. tydende
    Member
    Posted 5 years ago #

    That was it!

    Thanks samboll!

    Much appreciated.

  6. ccl1111
    Member
    Posted 4 years ago #

    Samboll, you rock!!! Been banging my head forever. Was this issue. Thanks!!!

Topic Closed

This topic has been closed to new replies.

About this Topic