# Error Pages Directory
# Allow access to HTML error pages (served by Apache ErrorDocument)
# Block everything else

Options -Indexes

# Only allow .html files
<FilesMatch "\.(?!html$)">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order Allow,Deny
        Deny from all
    </IfModule>
</FilesMatch>

# Explicitly block PHP execution
<IfModule mod_php.c>
    php_flag engine off
</IfModule>
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule \.php$ - [F,L]
</IfModule>
