# Touch Therapies Antigua — backend folder guard (Apache / LiteSpeed).
# Lets the whole backend/ folder be uploaded inside public_html (e.g.
# public_html/backend) without exposing application internals:
#   - /backend            → CMS login
#   - /backend/admin/...  → CMS
#   - /backend/api/...    → REST API
#   - config.php, src/, storage/, views/ → 403 Forbidden

Options -Indexes
RewriteEngine On

# Never serve application internals (the SQLite database lives in storage/).
RewriteRule ^(config\.php|src|storage|views)(/|$) - [F,L]

# Requests already inside public/ pass through untouched.
RewriteRule ^public(/|$) - [L]

# Existing files elsewhere in this folder: nothing else should be here.
# Everything goes into the real web root, public/.
RewriteRule ^(.*)$ public/$1 [L]
