WordPress.org

Ready to get started?Download WordPress

Forums

Linking to non-WP pages when WP is in root (7 posts)

  1. scoledirect
    Member
    Posted 6 years ago #

    Hello,
    I have WordPress 2.1.2 installed in <domain>/blog, however have set the blog address (in Admin general options) to the domain root. This has worked perfectly fine until now since WordPress is the only thing I have installed on the site.

    After loading content in another directory (e.g. <domain>/test), I've realized that the WP install doesn't allow me to access other subdirectories. Instead I get a page not found error (from the 404.php file of my WP theme).

    From browsing the WP support and forum pages, I'm inclined to think this is an .htaccess configuration issue, but don't know what I would need to do to modify it to permit subdirectory exceptions (i.e. allow me to connect directly to content in <domain>/test).

    Any help would be much appreciated!

  2. rocketman1223
    Member
    Posted 6 years ago #

    I, too, am experiencing the exact same issue. And, from what I've been reading, I think you're right about it being related to .htaccess. Unfortunately, I have found nothing insightful on the subject yet.

    Looking for feedback...

  3. moshu
    Member
    Posted 6 years ago #

    Well, I doubt it...
    I have the following setup on a domain:
    domain(root)=WP
    domain/subfolder1=WP
    domain/subfolder2=WP
    subdomain=WP.domain
    subdomain.domain/subfolder=WP
    and about a dozen subfolders with non-WP installs.
    they all work.

  4. AdamKayce
    Member
    Posted 5 years ago #

    Anyone find a solution to this one? I'm running 2.6, by the way.

    I've got a similar situation, where WP returns 404s instead of letting me access files in subdirectories... well, some subdirectories.

    http://xyz.com/ is the base of everything, where all WP activity happens.
    http://xyz.com/abc has an index.html file, but users can navigate to it just fine
    http://xyz.com/abc/def/index.html returns 404s. It IS password-protected - could that be an issue?

    Any help would be much appreciated.

  5. eiland
    Member
    Posted 5 years ago #

    yeah same here. i am trying a drupal in a subdirectory. I guess I need to add some kind of exemption to the root .htaccess?

  6. eiland
    Member
    Posted 5 years ago #

    ah, that would be

    `# stuff to let through (ignore)
    RewriteCond %{REQUEST_URI} "/folder1/" [OR]
    RewriteCond %{REQUEST_URI} "/folder2/"
    RewriteRule (.*) $1 [L]
    #`

    in the root' .htaccess, directly after RewriteEngine On

  7. meegwell
    Member
    Posted 5 years ago #

    Eiland,

    Can you clarify where these lines go? within the Begin/End WOrdpress? My current .htaccess looks like this:

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

    # END WordPress

Topic Closed

This topic has been closed to new replies.

About this Topic