# Block direct web access to application internals
RedirectMatch 403 ^/(app|config|database)(/|$)

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Pretty URLs: /dashboard, /analytics, /ce-analysis
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(dashboard|analytics|ce-analysis)/?$ index.php?page=$1 [L,QSA]
</IfModule>
