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
- How to create custom 401, 403 and 500 error pages?
- Static raw HTML page
- .htaccess file redirecting to parent directory
- WordPress in sub directory wp-admin problem
- How do I skip wordpress’s 404 handling?
- Rewrite rule not working
- Using “wordpress_logged_in” to restrict direct access to uploads folder in 2021
- .htaccess redirects disappeared after re-saving permalinks
- WordPress multilingual website domain and folders
- Attach to wp-login.php and xmlrpc.php
- WordPress blocking/preventing viewing of .cgi file in subdirectory [closed]
- XMLRPC filtering through htaccess not working
- Corrupt .htaccess file
- How to publish new posts/pages in root instead of subfolder, but keep old structure in place?
- How can i redirect one url to another url using .htaccess or add_rewrite_rule
- When is it necessary to have Header unset Vary in .htaccess
- WordPress 404 in development area
- Redirect http to https does not work on subdir where another instance of WordPress installed
- redirect the homepage using .htaccess outside of WordPress
- 403 error on admin login page
- Custom Permalink
- Redirect an old link to new site homepage [closed]
- subdirectory install breaking existing links
- How do I configure wordpress structure for development using git and composer
- subdirectory index.php is not working
- Is there a directory my plugin can write files to that cannot be viewed via the browser/url?
- How to turn this .htaccess rule into a dynamic rule with add_rewrite_rule, et al?
- Local PC cache stays filled with old WordPress Site data
- How to have a custom URI path for specific page template
- WordPress JSON API restrict to specific domain
- Where to put W3 Total Cache rewrite rules in .htaccess? [closed]
- Working with Reverse Proxies and Multisite Installation
- Selectively Disabling PHP via .htaccess in Root Directory
- What’s the best way to manage a lot of 301 redirects in WordPress?
- Shared hosting, multiple sites, can’t log in to WP due to .htaccess redirection
- How to set up MS Exchange Autodiscover alongside WordPress
- execute cron jobs when .htaccess login protected?
- Redirect WordPress site to a landing (construction) page using htaccess, with access to /wp-admin and /invoice
- Problems with running a 2nd installation of WordPress on my domain?
- Steps for WordPress over SSL
- Fresh wordpress installation in sub-directory not accessible
- WordPress login bug. Need an emergency solution
- Folder Name and Category Name WordPress
- Some images 404
- Where is the htaccess in wordpress.com hosting?
- Debug errors for “Destination directory for file streaming does not exist or is not writable”