# ACCG Foundation — front controller
Options -Indexes

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Serve existing files/directories directly
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]

    # Everything else goes through index.php
    RewriteRule ^ index.php [QSA,L]
</IfModule>

# Protect application internals
<FilesMatch "\.(sql|log|md)$">
    Require all denied
</FilesMatch>
