Options -Indexes

<IfModule mod_rewrite.c>
    RewriteEngine On
    # Módulos herdados do sistema de bar não fazem parte do PKJ Gestão.
    RewriteRule ^(?:caixa|delivery|fiscal|garcom|historico_estoque|historico_vendas|mesas|producao|produtos|vendas)\.php$ - [R=404,L,NC]
    RewriteRule ^api/(?:cancelamento|cancelamento_delivery|comanda|comanda_item|comanda_pagamento|delivery|mesa|mesa_acao|producao|venda)\.php$ - [R=404,L,NC]
    RewriteRule ^(?:bin|scripts|database|storage)/ - [R=404,L,NC]
</IfModule>

<FilesMatch "^(\.env|\.env\..*|\.gitignore)$">
    Require all denied
</FilesMatch>

<FilesMatch "\.(sql|log)$">
    Require all denied
</FilesMatch>
