<IfModule mod_rewrite.c>
    RewriteEngine Off
</IfModule>

<IfModule mod_autoindex.c>
    Options -Indexes
</IfModule>

# Allow access to all files - Apache 2.4 syntax
<IfModule mod_authz_core.c>
    Require all granted
</IfModule>

# Fallback for Apache 2.2
<IfModule !mod_authz_core.c>
    Order allow,deny
    Allow from all
</IfModule>

# Set proper MIME types for images
<IfModule mod_mime.c>
    AddType image/jpeg .jpg .jpeg
    AddType image/png .png
    AddType image/gif .gif
    AddType image/svg+xml .svg
    AddType image/webp .webp
    AddType image/x-icon .ico
</IfModule>

# Enable caching for better performance
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType image/gif "access plus 1 year"
    ExpiresByType image/svg+xml "access plus 1 year"
</IfModule>