WordPress.org

Ready to get started?Download WordPress

Forums

Subdirectory installation reading non-WP folders as pages (4 posts)

  1. fencer_x
    Member
    Posted 1 year ago #

    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 http://mysite.com displays the WP installation perfectly.

    However, I have another unrelated folder of http://mysite.com/slide/ which has a web-based comic reading program installed. It shows up fine, but any directories beyond it, like http://mysite.com/slide/reader/chapter_1, 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.

  2. fencer_x
    Member
    Posted 1 year ago #

    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...

  3. fencer_x
    Member
    Posted 1 year ago #

    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, http://mysite.com/slide displays fine.

    However, once I try to navigate to any directories UNDER that, I'm taken back to wordpress. For example, http://mysite.com/slide/admin 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??

  4. fencer_x
    Member
    Posted 1 year ago #

    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]
    </IfModule>
    
    # 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?

Topic Closed

This topic has been closed to new replies.

About this Topic