# Latitude Energy — Counterparty KYC Portal (Apache / cPanel)
# Serves the single-page frontend while leaving /api/*.php untouched.

Options -MultiViews
RewriteEngine On

# Never rewrite the PHP API.
RewriteRule ^api/ - [L]

# Serve existing files and directories as-is.
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# Everything else (e.g. /admin, /portal, /verify) is handled by the frontend.
RewriteRule ^ index.html [L]
