Options -Indexes

<IfModule mod_rewrite.c>
RewriteEngine On

# Stable document fallback. This keeps the documented JSON URL available even when a host blocks JSON MIME handling.
RewriteRule ^docs/client-service-record-example\.json$ docs/client-service-record-example.php [L,QSA]

# Branded not-found handling for any missing page/file inside this project folder.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ error.php?code=404&path=$1 [L,QSA]
</IfModule>

<IfModule mod_headers.c>
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "SAMEORIGIN"
Header set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>


<FilesMatch "^\.env">
Require all denied
</FilesMatch>
