Options -Indexes
DirectoryIndex index.php
RewriteEngine On

RewriteRule ^(app|data)(/|$) - [F,L]
RewriteRule (^|/)config\.php$ - [F,L]

RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ - [L]

RewriteRule ^ index.php [L]

<IfModule mod_php.c>
  php_value upload_max_filesize 20M
  php_value post_max_size 24M
</IfModule>
