WordPress.org

Ready to get started?Download WordPress

Forums

Subfolder index.php 404 Errors (3 posts)

  1. eklemen2
    Member
    Posted 5 months ago #

    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/
    FAILS (404 PAGE):
    http://www.mydomain.com/contact/index.php

    PERMALINK SETTING:
    Custom Structure: 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!

  2. eklemen2
    Member
    Posted 5 months ago #

  3. esmi
    Forum Moderator
    Posted 5 months ago #

    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 before setting a custom permalink structure back up again.

Reply

You must log in to post.

About this Topic