RewriteEngine On
RewriteRule ^api/(.+)$ api/index.php?action=$1 [L,QSA]
