WordPress.org

Ready to get started?Download WordPress

Forums

Subdirectories and files appearing as 404 (4 posts)

  1. Cynra
    Member
    Posted 4 years ago #

    I've been looking for a solution to my problem for a bit now, but I decided to turn to the community for help.

    My WordPress blog is currently installed in the main directory of my website (under public_html). The site works fine and I'm pleased. Happiness.

    Recently I took the opportunity to install another CMS into a subdirectory of my domain, though it's not anything associated with WordPress. In order to complete the installation, I need to open a file in a folder under that subdirectory. Even though it exists when I access the directory through FTP, I can't seem to open it in any browser. Firefox, IE, whatever -- I turn up the 404 error associated with my WordPress theme. Regardless of the theme I use, a 404 error appears for any file under this subdirectory.

    I am growing frustrated because I can't find any way to convince WordPress not to consider this subdirectory a part of it. However, files under other subdirectories are just fine. I'm befuddled.

    I have more experience doing frontend webdesign and overly technical responses will probably just further confuse me. Thank you in advance for any help, direction, or light you can shed on my question!

  2. Shane G
    Member
    Posted 4 years ago #

    Hey,

    Check this code is added in the htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    If it is not then add and have a check..

    Thanks,

    Shane G.

  3. Cynra
    Member
    Posted 4 years ago #

    Thanks, Shane. I've got

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    I added the line I was missing (ErrorDocument 404 /index.php?error=404), but still no-joy. I'm able to access the subdirectory, but the file in particular that I'm supposed to load in order to install this other CMS still comes up as non-existent -- even though I can take a copy of that file and download it to my computer.

    I haven't worked updated the blog in a while, so I might just uninstall it after backing up all of the appropriate files. This way, I can complete the installation of this other CMS and reinstall WordPress if I end up wanting to update.

  4. dsomar
    Member
    Posted 4 years ago #

    Cynra,

    I'm having this problem. Were you ever able to solve it?

    Thanks,
    D

Topic Closed

This topic has been closed to new replies.

About this Topic