# Ward Music Planner API: route everything through index.php
Options -Indexes
<IfModule mod_rewrite.c>
    RewriteEngine On
    # Pass the auth header through on hosts (e.g. some XAMPP/CGI setups) that strip it
    RewriteRule .* - [E=HTTP_X_AUTH_TOKEN:%{HTTP:X-Auth-Token}]
    RewriteCond %{REQUEST_FILENAME} !index\.php$
    RewriteRule ^ index.php [L,QSA]
</IfModule>

# Never serve PHP source/config files directly (belt and braces)
<FilesMatch "^(config(\.local)?|routes)\.php$">
    Require all denied
</FilesMatch>
