Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(app|config)/ - [F,L]
</IfModule>
