I want to block access to \"sub/folder/index.php\", but not \"index.php\" anywhere else.
Order allow,deny
Deny from all
I try creating another .htaccess in that sub/folder/ to block the access to that index.php.
"If you place a .htaccess file in a sub-folder, its directives will override the ones that you have in your site main folder."
This page has further information: http://www.besthostratings.com/articles/htaccess.html