RewriteEngine On
## Extensionless PHP (frontend calls /api/.../GetHomeSettings without .php)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [L]

Options -MultiViews -Indexes
<IfModule mod_mime.c>
  AddType text/javascript .js
  AddType application/javascript .mjs
</IfModule>
<IfModule mod_headers.c>
  <FilesMatch "\.(js|mjs)$">
    Header set Content-Type "text/javascript; charset=utf-8"
  </FilesMatch>
  <FilesMatch "^(lottie_light-|index-B0odO8FB)">
    Header set Cache-Control "no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
  </FilesMatch>
</IfModule>
