Options -Indexes
<FilesMatch "\.(env|sql|log|ini|bak|config\.php)$">
  Require all denied
</FilesMatch>
RewriteEngine On

# Keep the application accessible at /Employee_Boon_Real_System/
# while using public/ as the actual web root.
RewriteRule ^$ public/index.php [L]
RewriteCond %{REQUEST_URI} !^/Employee_Boon_Real_System/public/
RewriteCond %{DOCUMENT_ROOT}/Employee_Boon_Real_System/public/$1 -f [OR]
RewriteCond %{DOCUMENT_ROOT}/Employee_Boon_Real_System/public/$1 -d
RewriteRule ^(.+)$ public/$1 [L]
