Closed aemann2 closed 3 years ago
The app works normally when visiting the main route:
https://movie-finder-moviedb.netlify.app/
Entering these URLs directly, however, generates a 404 error:
https://movie-finder-moviedb.netlify.app/602223
https://movie-finder-moviedb.netlify.app/about
Fixed in 39b4803
Test:
https://user-images.githubusercontent.com/68879246/127546585-e9a40177-cb80-4a77-8bcb-60af1fa286ba.mov
See this blog post for more info:
https://blog.karenying.com/posts/404-react-page-not-found
Fix: add a _redirects file to the /public folder with this line:
_redirects
/public
/* /index.html 200
The app works normally when visiting the main route:
https://movie-finder-moviedb.netlify.app/
Entering these URLs directly, however, generates a 404 error:
https://movie-finder-moviedb.netlify.app/602223
https://movie-finder-moviedb.netlify.app/about