• So WP is installed at domain.com
    And at the subfolder domain.com/subfolder there is a custom solution which shows up as WP 404 page.

    Is there some way to add an exception to WordPress so that it would leave that subfolder alone?

    I’ve tried some .htaccess code from 2014 or so, and it didn’t do anything. Haven’t found anything else that would solve this.

    Any ideas on how to fix it?

    • This topic was modified 4 years, 7 months ago by laptopsticker.
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    There is apparently something amiss with your .htaccess rules. The rule RewriteCond %{REQUEST_FILENAME} !-d in the standard WP rewrite rule set ensures that WP gets control of the request only when the requested sub-directory does not exist on the server. (REQUEST_FILENAME returns the entire path from the URL, not just the the actual file name)

    It’s pointless to add an exception since this rule is already an exception. What you’ll want to investigate is why does the server think the sub-directory for your custom solution does not exist? The only reasons I can think of is some other non-standard rule is passing control to WP before reaching the standard rule set, or there is a typo error in the request.

Viewing 1 replies (of 1 total)
  • The topic ‘Can’t access subfolders because of WordPress’ is closed to new replies.