# Used when the whole backend folder is uploaded inside public_html (e.g. public_html/finance).
# Blocks access to code, config and data, and sends everything else to public/.
Options -Indexes
RewriteEngine On
RewriteRule ^(src|database|cron|tests|docs)(/|$) - [F,L]
RewriteRule ^[^/]+\.(php|json|sql|md|log)$ - [F,L]
RewriteRule ^(?!public/)(.*)$ public/$1 [L]
