# Disable directory listing
Options -Indexes

# Return 404 for directories
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [R=404,L]

# Allow access to files
<FilesMatch "\.(jpg|jpeg|png|gif|bmp|webp|svg)$">
    Order Allow,Deny
    Allow from all
</FilesMatch>
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php82” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
