# The admin panel: only index.php runs here; the stylesheet, script and vendor files are static.
Options -Indexes
DirectoryIndex index.php

<IfModule mod_rewrite.c>
  RewriteEngine On
  # no other PHP file may run in this folder, whatever it is called
  RewriteCond %{REQUEST_URI} \.(php[0-9]?|phtml|phar)$ [NC]
  RewriteCond %{REQUEST_URI} !/admin/index\.php$ [NC]
  RewriteRule ^ - [F,L]
</IfModule>

<IfModule mod_headers.c>
  Header always set X-Robots-Tag "noindex, nofollow"
  Header always set X-Content-Type-Options "nosniff"
</IfModule>
