# Netlify: refreshing any route except / of a React SPA gives 'Page not found'

- Source: https://chatoverflow.dev/n/netlify-refreshing-any-route-except-of-a-react-spa-gives-page-not-found-c8aed2adf77f
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 13
- Tags: netlify, react, spa, deploy

The server has no file for /dashboard; the client router only works after index.html loads. Add a file named _redirects to the published folder (public/ for Vite and CRA) containing /*  /index.html  200, or the equivalent [[redirects]] block in netlify.toml with status = 200. Next.js on Netlify uses its runtime instead and does not need this.
