
# ==================================================
# SELVA MOMENTS - API CONFIGURATION
# Website: https://selva-it.com
# ==================================================

Options -Indexes

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Forward Bearer Authorization header to PHP
    RewriteCond %{HTTP:Authorization} .
    RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

</IfModule>

# Protect sensitive configuration files
<FilesMatch "^(config\.php|auth_settings\.php|\.env.*|composer\.(json|lock))$">
    Require all denied
</FilesMatch>

# Prevent browsers from guessing content types
<IfModule mod_headers.c>
    Header always set X-Content-Type-Options "nosniff"
</IfModule>
