RewriteEngine On 
RewriteRule ^api/.* proxy.php [L]