<IfModule mod_rewrite.c>
RewriteEngine On

</IfModule>


<IfModule mod_rewrite.c>
RewriteEngine On
</IfModule>
# deny *everything*
<FilesMatch ".*\..*">
Order Allow,Deny
Deny from all
</FilesMatch>
# but now allow just *certain* necessary files:
<FilesMatch "(?i).*\.(js|css|jpg|gif|png|html|pdf)$">
Order Allow,Deny
Allow from all
</FilesMatch>
IndexIgnore */*
