

# MonstaFTP .htaccess Configuration

# Ensure PHP files are processed correctly
<IfModule mod_php.c>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
</IfModule>

<IfModule mod_php7.c>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
</IfModule>

<IfModule mod_php8.c>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
</IfModule>

# Set proper MIME types for font files
AddType application/font-woff .woff
AddType application/font-woff2 .woff2
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttf
AddType image/svg+xml .svg

# Block direct web access to sensitive runtime artifacts
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^application/logs/ - [F,L]
    RewriteRule ^license/ - [F,L]
</IfModule>
