<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /broker-portal/
    
    # Route API requests to api/public
    RewriteCond %{REQUEST_URI} ^/broker-portal/api/(.*)$
    RewriteRule ^api/(.*)$ api/public/$1 [L]
    
    # Vue SPA - serve index.html for non-file requests
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/broker-portal/api/
    RewriteRule ^ index.html [L]
</IfModule>
Options -Indexes
