<IfModule mod_rewrite.c>
  RewriteEngine On

  # If deploying to a subfolder, cPanel still serves this .htaccess from that folder,
  # so the rewrite works the same way.

  # Don't rewrite existing files or folders
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^ - [L]

  # SPA fallback (React Router)
  RewriteRule ^ index.html [L]
</IfModule>

