<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  
  # For cPanel static hosting: Route all requests to index.html for React SPA
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !^/api/ [NC]
  RewriteRule ^(.*)$ /index.html [QSA,L]
</IfModule>
