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