RewriteEngine On

# Avoid proxying requests for existing files or directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Proxy all remaining requests to your backend
RewriteRule ^(.*)$ http://127.0.0.1:4343/$1 [P,L]

# Optional: preserve headers for API calls
ProxyPreserveHost On
ProxyRequests Off
