<IfModule mod_rewrite.c>
  RewriteEngine On

  # Dynamic RewriteBase (adjust if you always host under alumni-portal)
  RewriteBase /alumni-portal/

  # Allow direct access to index.html
  RewriteRule ^index\.html$ - [L]

  # Pass requests for existing files or directories
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^ - [L]

  # Route all other requests to index.html
  RewriteRule . index.html [L]
</IfModule>
