<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^api/([a-z0-9\-]+)$ api.php?guid=$1&%{QUERY_STRING}
</IfModule>