I’m seeing this common issues thread: [Common Issue] Direct links to my single page app (SPA) don't work and that is basically my exact issue.
That thread suggests using a
_redirects file. If that’s necessary, I’ll try that. But, the docs for redirects seem to suggest that you can instead configure your redirects in your
netlify.toml. I might be misunderstanding something, I’m very new to netlify. I was hoping I could keep all my netlify-related configuration in the
netlify.toml, so I was hoping to get that working. It seems to have no effect.
Here’s my example:
[[redirects]] from = "/*" to = "/index.html" status = 200
The redirects snippet is copied from the large sample configuration file here: https://docs.netlify.com/configure-builds/file-based-configuration/#sample-file
In my builds (example), I see that it says “This deploy did not include any redirect rules”.
Should I just use the
_redirects file if I want to do a rewrite-style redirect?