I am seeing 404s on non-index routes of my svelte SPA (using sirv-cli and the page library) even though I have a _redirects
file in the root of my repo with these contents:
/* /index.html 200
I am seeing 404s on non-index routes of my svelte SPA (using sirv-cli and the page library) even though I have a _redirects
file in the root of my repo with these contents:
/* /index.html 200
Hey @JaKXz Welcome to Netlify Community!
It looks like you need to force this redirect by adding a !
onto the end.
/* /index.html 200!
Kyle.
Thanks for the reply @kylesloper
As it turns out I missed the line in the documentation that says the _redirects
file must be in the publish directory, in my case public/
.
Great! Glad you got it working.