<Directory /path_to_root/.*/images> php_flag engine off</Directory><Directory ~ "/path_to_root/.*/images"> <Files ~ ".php|.txt"> Order allow,deny Deny from all </Files></Directory>