The way the wordpress htaccess works is that first it looks if there is a file matching the request location, in which case it is being “run”, otherwise the wordpress handles the URl. Basically you don’t even “execute” your subdirectory’s htaccess unless you access an existing fie there.
What you should do is to add to the wordpress htaccess rules that will prevent it from handling urls under the subdirectory.
Related Posts:
- Fixing custom 404 pages broken by WordPress in a subdirectory
- Installing wordpress on subdirectory 2 levels down
- Cannot access non-wordpress subdirectories as wordpress overrides them with a 404 error
- File and directory permissions
- Place static HTML files in path below WordPress page
- .htaccess for wordpress inside another wordpress install
- Serve apache 404 for missing assets rather then wp 404 template WP_Rewrites
- Isolating WordPress to a subfolder
- WordPress site displaying 404 for any page apart from index
- Permalinks not working on second wordpress installed in a subdirect
- Move wordpress to folder without changing urls
- Change wp-content without changing the name of the folder
- WordPress keeps deleting .htaccess file
- How to restrict access to wp-content, wp-includes and all sub-folders
- Redirect main domain to subdirectory
- HTAccess stops me from accessing WordPress Dashboard links
- Exclude subfolder from WP-redirect works with html but not php files
- Site searches by Python for non-existent assets
- WordPress 404 on Subdomain
- WordPress overrides custom 404 page with it’s own
- Can’t Access Subdirectory
- WP install in sub-dir white screen
- Drawbacks to using Options -Indexes
- Override 404 page with htaccess
- WordPress installed in root, need second in subdirectory with different domain
- htaccess, site and staging in subdirectories
- External content won’t load in iframe in Safari
- WordPress category with 404 error
- 404 error Additionally 403 Forbidden error on a URL
- My Homepage Suddenly Disappeared and I Can’t Get It Back
- Disable directory browsing of uploads folder
- I have a page using a pretty url and a mod_rewrite rule matching it. I expected it to give an error but it’s working. Why?
- Creating a copy of a website in a subdirectory, wp-admin redirect problem
- Access sub-domain when root public_html is protected with .htaccess password
- “Oops.” error on an html file directly uploaded to a subdirectory of my WordPress site
- Cannot access subdirectory subpages
- How to execute WordPress as though it is in the root folder while it is installed in a subdirectory?
- WP Codex answer incomplete? Put WP in subdirectory. .htaccess change required
- Install second wordpress in root subfolder, Error 404
- htaccess redirects invalid request to home page not 404
- Remove subdirectory from links
- How to properly give WordPress its own directory
- Downloading zip or tar.gz inside WordPress installation?
- Clicking PUBLISH Now Redirects to 404 PAGE NOT FOUND
- After changing permalink, getting 404 for one particular category
- htaccess- to hide subdirectory slug only from the post
- How to direct users to a subcatalog
- htaccess mod_rewrite not working
- .htaccess and virtual host configuration for WP in its own directory
- Giving WordPress it’s own directory and using .htaccess Directory Index
- Issue after changing permalink structure [duplicate]
- Why ‘Authorization Required’ is coming on wordpress login
- Home page returns 404
- Permalinks not working on debian with OVH
- Best collection of code for your .htaccess file [closed]
- How to create custom 401, 403 and 500 error pages?
- Moving a WP Multisite to a subdirectory
- Default .htaccess file for WordPress?
- How do I skip wordpress’s 404 handling and redirect all 404 errors for static files to 404.html?
- Which one does WordPress prioritize when it comes to php.ini, wp-config and .htaccess?
- Improve wordpress security by hiding non public resources
- WordPress site hacked. Has .htaccess been hacked?
- Does this .htaccess security setting really work?
- htaccess problem after saving Settings
- multisite 404 error for subdirectory
- Stop WordPress and Plugins from Overwriting .htaccess
- Move WordPress to subdirectory, keep ALL URLs
- htaccess disable WordPress rewrite rules for folder and its contents
- htaccess rewrite conflict with wordpress rules and ssl
- Non-WordPress page in subdirectory under WordPress page
- htaccess https redirect from www to non-www
- Permalink Issues by Installing WordPress in Subdirectory / Subfolder
- Htaccess for Wordpess set on single subdomain
- adding rewrite rules in .htaccess
- .htaccess and 500 error, extra character added
- WordPress .htaccess subdirectory problem
- Name-based virtual host configuration in Apache seems to cause a “500 Internal Server Error”
- Site redirects to wrong url when saving settings
- Static raw HTML page
- WordPress + Magento .htaccess ReWriteRule Issue (www vs. non-www)
- Plugin to edit htaccess file
- htaccess rewrite for author query string when WP is in subfolder
- Why “Settings->Permalinks” creates .htaccess file on nginx server?
- .htaccess file redirecting to parent directory
- WordPress in sub directory wp-admin problem
- Blog.php or how to display recent posts?
- Rewrite /?rest_route=/ link to /wp-json/ without changing default permalink structure in apache
- Globally force SSL on all pages
- Unwanted redirect in admin area
- Remove year and month in URL using .htaccess
- index.php not loading in main folder of wordpress
- Admin-Ajax.php, SSL, Non-SSL
- How disable SSL redirect for specific URL?
- How do I skip wordpress’s 404 handling?
- Why does the header set X-Robots-Tag apply to all pages?
- Suppress subdirectory from WordPress Multisite primary URL
- How to avoid wordpress permalink rules to inherit in a sub-folder
- Error:406 not acceptable
- Unable to access WP admin
- .htaccess Rewrite URL WordPress