<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /VOD/api/
    
    # Don't rewrite if file exists
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    # Rewrite /api/endpoint to /api/index.php
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
