<Files *>
deny from all
</Files>

<FilesMatch "(?i)\.(jpe?g|png|gif|jpg|txt|tiff|psd|pdf|eps|raw|doc|docx|ppt|pptx|xls|xlsx|xml)$">
  allow from all
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>