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

  1. tydende
    Posted 7 years ago #


    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.


    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?


  2. Samuel B

    Posted 7 years ago #

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

  3. tydende
    Posted 7 years ago #

    Hey Samboll,

    Thanks for the response.

    I do have an index.php in the root folder, with
    /* Short and sweet */
    define('WP_USE_THEMES', true);

    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

    Posted 7 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
    Posted 7 years ago #

    That was it!

    Thanks samboll!

    Much appreciated.

  6. ccl1111
    Posted 6 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