Support » Fixing WordPress » Subdirectory installation reading non-WP folders as pages

  • I’ve installed my WP in a subdirectory to keep it from being displayed on the root until I was finished spiffing it up.

    It just went live yesterday, and I set the site address as the root URL and the WP address as the directory to keep things clean, going through all the hoops. No problems now, and displays the WP installation perfectly.

    However, I have another unrelated folder of which has a web-based comic reading program installed. It shows up fine, but any directories beyond it, like, WP tries to read as WP entries and displays a 404 page from the blog, which isn’t even related to it.

    Please help? I’ve tried changing permalink settings, to no avail.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Update: I’ve placed a bandaid on the problem by reverting to the default permalink structure, but this looks horrific and now I have to edit all of my links all over again to reflect the new structure, so this really isn’t an option…

    Since the bandaid isn’t helping that much given that links that have already been spread around use the pretty permalink structure and would no longer work, I’m back to square one.

    Since WordPress by default checks to see if a subdirectory exists and goes to that instead of a page of the same name, displays fine.

    However, once I try to navigate to any directories UNDER that, I’m taken back to wordpress. For example, should take me to the admin login panel for the slide directory — but now I just get a WordPress 404 error. Is there any way to tell wordpress to ignore that subdirectory??

    This may have something to do with the htaccess files for the root and subdirectory in question. Here is my root code (as I tried to keep the /slide subdirectory from being written:

    RewriteBase /
    RewriteCond %{REQUEST_URI} ^/slide(.*)$ [OR]
    RewriteRule ^.*$ - [L]
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ./ /index.php [L]
    # END WordPress

    And here is the subdirectory’s htaccess information:

    DirectoryIndex index.php
    RewriteEngine on
    RewriteCond $1 !^(index\.php|assets|robots\.txt|favicon\.ico)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ ./index.php?/$1 [L,QSA]

    Any suggestions at all?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Subdirectory installation reading non-WP folders as pages’ is closed to new replies.