Denying access to all files except index.html apache

Solution 1:

Try this:

Order allow,deny
Deny from all
<FilesMatch index\.html>
        Allow from all
</FilesMatch>