React App sends 404 page not found #11680
Unanswered
igboBoydev
asked this question in
Q&A
Replies: 3 comments 2 replies
-
You need to forward all endpoints to the index.html file. Just google "serve single page app". The docs cover this all though https://create-react-app.dev/docs/deployment |
Beta Was this translation helpful? Give feedback.
0 replies
-
I was using BrowserRouter and having this problem. Switch to HashRouter and problem was solved. |
Beta Was this translation helpful? Give feedback.
2 replies
-
I return 404.html to public and add script for redirect in index.html and it solved this problem |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, please I'm currently facing an issue with my react app where on development environment it works just fine but when deployed to a server, and a user accesses the site and refreshes any other page apart from the homepage it breaks and sends a 404 error code. Please any help on how to fix this ?
Beta Was this translation helpful? Give feedback.
All reactions