• 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!

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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…

    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.

    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.

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

    Any help would be much appreciated.

    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?

    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

    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Linking to non-WP pages when WP is in root’ is closed to new replies.