# Theme files are served over HTTP: deny direct access to everything the
# browser never needs. Only PHP, CSS, JS, fonts and images stay reachable.
<FilesMatch "\.(json|lock|md|phar|ya?ml|map|scss|sh|dist)$">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
  <IfModule !mod_authz_core.c>
    Order allow,deny
    Deny from all
  </IfModule>
</FilesMatch>

# Hidden files: version control metadata, deploy state, editor leftovers.
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule "(^|/)\." - [F,L]
</IfModule>
