I have folder containing several files and sub-folders such as the following:
-/folder
-/subfolder
-/subfolder
-/subfolder
-/etc...
-index.html
-control.php
-ads.php
-/etc...
Now I want to disable work PHP or other files in main directory only (-/folder) like (-index.html, -control.php) , but all sub-folder files I want to works well.
I want to have effect on the files within that main folder only .
If I understand the question correctly, you need a .htaccess in the given directory with this content:
Edit: Since as far as I know .htaccess rules apply to all subdirectories as well, you might have to create a .htaccess file in each subdir to override the restriction specified for root
http://httpd.apache.org/docs/current/howto/htaccess.html#how