Title: wp-admin/index.php working, wp-admin getting 404
Last modified: August 19, 2016

---

# wp-admin/index.php working, wp-admin getting 404

 *  Resolved [tydende](https://wordpress.org/support/users/tydende/)
 * (@tydende)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/wp-adminindexphp-working-wp-admin-getting-404/)
 * 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)
    [http://www.runwithreza.org/wp-admin/index.php](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

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/wp-adminindexphp-working-wp-admin-getting-404/#post-963700)
 * maybe your host doesn’t have index.php enabled for directories
 *  Thread Starter [tydende](https://wordpress.org/support/users/tydende/)
 * (@tydende)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/wp-adminindexphp-working-wp-admin-getting-404/#post-963712)
 * 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.
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/wp-adminindexphp-working-wp-admin-getting-404/#post-963731)
 * 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
 *  Thread Starter [tydende](https://wordpress.org/support/users/tydende/)
 * (@tydende)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/wp-adminindexphp-working-wp-admin-getting-404/#post-963740)
 * That was it!
 * Thanks samboll!
 * Much appreciated.
 *  [chrislee](https://wordpress.org/support/users/ccl1111/)
 * (@ccl1111)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/wp-adminindexphp-working-wp-admin-getting-404/#post-964017)
 * Samboll, you rock!!! Been banging my head forever. Was this issue. Thanks!!!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘wp-admin/index.php working, wp-admin getting 404’ is closed to new replies.

## Tags

 * [wp-admin 404](https://wordpress.org/support/topic-tag/wp-admin-404/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [chrislee](https://wordpress.org/support/users/ccl1111/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/wp-adminindexphp-working-wp-admin-getting-404/#post-964017)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
