# Allow access to panel
Options +FollowSymLinks
RewriteEngine On

# Allow access from all
Require all granted

# Prevent directory listing
Options -Indexes

# Handle PHP files
AddType application/x-httpd-php .php

# Protect sensitive files
<FilesMatch "^(config\.php|\.htaccess|\.git)$">
    Order allow,deny
    Deny from all
</FilesMatch>

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