# Block sensitive files from direct web access
<FilesMatch "\.(json|config\.php|bak|log|txt|md|sql|sh|ini)$">
    Order Allow,Deny
    Deny from all
</FilesMatch>

<Files "config.php">
    Order Allow,Deny
    Deny from all
</Files>

RewriteEngine On
RewriteRule ^api/sub/?$ sub.php [QSA,L]
