# Disable directory browsing
Options -Indexes

# Prevent direct access to sensitive files
<FilesMatch "\.(htaccess|htpasswd|ini|log|sh|inc|bak|sql)$">
    Order Allow,Deny
    Deny from all
</FilesMatch>

# Allow access to specific file types
<FilesMatch "\.(css|js|jpg|jpeg|png|gif|ico|svg|woff|woff2|ttf|eot)$">
    Order Allow,Deny
    Allow from all
</FilesMatch>

# PHP settings
php_flag display_errors on
php_value error_reporting E_ALL

# Set default charset
AddDefaultCharset UTF-8

# Set timezone (change to your timezone)
php_value date.timezone Asia/Kolkata

# Increase memory limit if needed
php_value memory_limit 128M

# Disable magic quotes (deprecated in PHP 5.4+)
<IfModule mod_php5.c>
    php_flag magic_quotes_gpc off
    php_flag register_globals off
</IfModule>
