Title: Subfolder index.php 404 Errors
Last modified: August 21, 2016

---

# Subfolder index.php 404 Errors

 *  [Eric](https://wordpress.org/support/users/eklemen2/)
 * (@eklemen2)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/subfolder-indexphp-404-errors/)
 * I’m looking for help troubleshooting why subfolder pages return a 404 error if“
   index.php” is appended after the subfolder. I do not experience this behavior
   on other WordPress sites. I have inherited this site from previous developers,
   so I don’t know what may have caused this.
 * Here are some examples and additional information:
 * WORKS:
    [http://www.mydomain.com/contact/](http://www.mydomain.com/contact/) 
   FAILS (404 PAGE): [http://www.mydomain.com/contact/index.php](http://www.mydomain.com/contact/index.php)
 * PERMALINK SETTING:
    Custom Structure: [http://www.mydomain.com/%category%/%postname%/](http://www.mydomain.com/%category%/%postname%/)
 * HTACCESS:
    <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule
   ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}!-
   d RewriteRule . /index.php [L] </IfModule>
 * Thanks!

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

 *  Thread Starter [Eric](https://wordpress.org/support/users/eklemen2/)
 * (@eklemen2)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/subfolder-indexphp-404-errors/#post-4571819)
 * These two examples are more accurate to my situation:
 * WORKS: [http://www.mydomain.com/parentpage/](http://www.mydomain.com/parentpage/)
   
   404 PAGE: [http://www.mydomain.com/parentpage/childpage/index.php](http://www.mydomain.com/parentpage/childpage/index.php)
 * WORKS: [http://www.mydomain.com/category/slug/](http://www.mydomain.com/category/slug/)
   
   404 PAGE: [http://www.mydomain.com/category/slug/index.php](http://www.mydomain.com/category/slug/index.php)
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/subfolder-indexphp-404-errors/#post-4571820)
 * Why are you adding `index.php` onto your child page urls? Try resetting your 
   custom permalinks back to the default setting via Settings -> Permalinks. If 
   this works, then review [Using_Permalinks](http://codex.wordpress.org/Using_Permalinks)
   before setting a custom permalink structure back up again.

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

The topic ‘Subfolder index.php 404 Errors’ is closed to new replies.

## Tags

 * [child pages](https://wordpress.org/support/topic-tag/child-pages/)
 * [index.php](https://wordpress.org/support/topic-tag/index-php/)
 * [subdirectory](https://wordpress.org/support/topic-tag/subdirectory/)
 * [subfolder](https://wordpress.org/support/topic-tag/subfolder/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/subfolder-indexphp-404-errors/#post-4571820)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
