Options -Indexes

DirectoryIndex index.html

AddType text/css .css
AddType application/javascript .js
AddType image/png .png
AddType image/svg+xml .svg
AddType image/x-icon .ico
AddType application/json .json
AddType font/woff .woff
AddType font/woff2 .woff2

<FilesMatch "\.(css|js|json|png|jpg|jpeg|svg|ico|webp|woff|woff2)$">
  <IfModule mod_authz_core.c>
    Require all granted
  </IfModule>
  <IfModule !mod_authz_core.c>
    Order allow,deny
    Allow from all
  </IfModule>
</FilesMatch>

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /Instituto/

  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^ - [L]

  RewriteRule ^ 404.html [L]
</IfModule>
