RewriteEngine On
RewriteCond %{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} !-d
RewriteBase /imsgo/api
RewriteRule ^portalApi index.php [QSA,L]