How to fix page not found on Netlify with react-router-dom

Benjamin Ajewole
1 min readSep 9, 2019
Page Not Found

Have you tried to refresh your page after successfully deploying it on Netlify and you get “Page not found”?

The reason is that “React Router handles routing on the client side (browser) so when you visit non-root page (e.g. https://yoursite.netlify.com/else), Netlify (server-side) does not know how to handle the route.”

To fix this issue, you need to create a _redirects file inside your public folder

Create a _redirects file inside your public folder

Happy Coding!!!

--

--