# RepmanOS — Apache (cPanel). Everything that is not a real file goes to index.php.
Options -Indexes
DirectoryIndex index.php

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^ index.php [L]
</IfModule>

# Never serve dotfiles or backups.
<FilesMatch "^\.|\.(sql|log|bak|env|ini|md)$">
  Require all denied
</FilesMatch>

# Static assets: cache, with ?v= fingerprinting from the app.
<IfModule mod_headers.c>
  <FilesMatch "\.(css|png|svg|woff2)$">
    Header set Cache-Control "public, max-age=31536000, immutable"
  </FilesMatch>
</IfModule>
