Stop wordpress being active on a subdirectory within WordPress
All files and directories from the installed directory are considered to be under its control by WordPress. You can exclude a directory by adding an htaccess rule.
Exclude the subdirectory “my_subdirectory” from a WordPress root installed website
# BEGIN WordPress
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/my_subdirectory
RewriteRule . /index.php [L]
# END WordPress
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.