RewriteEngine On
RewriteBase /jobcard/

# Redirect /jobcard/ to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]

# Disable directory browsing
Options -Indexes

# Security: deny access to sensitive files
<FilesMatch "\.(sql|env|log|txt)$">
  Order Allow,Deny
  Deny from all
</FilesMatch>
