# PHP Configuration for Inventory Count System
php_value max_input_vars 5000
php_value post_max_size 50M
php_value upload_max_filesize 50M
php_value max_execution_time 300

# Security headers
<IfModule mod_headers.c>
    Header always set X-Content-Type-Options nosniff
    Header always set X-Frame-Options DENY
    Header always set X-XSS-Protection "1; mode=block"
</IfModule>

# URL rewriting for SPA
RewriteEngine On
RewriteBase /

# Handle client-side routing - redirect to PHP backend
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_URI} !\.php$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /backend/php/index.php [L]
