we have built UI using react js framework and html +css + js code is deployed inside apache 2. When I browse website it works fine but if I refresh page then I get 404. Can someone tell me how can I fix it.
Asked
Active
Viewed 1,128 times
2 Answers
0
If you are using React-Router you are probably having this problem: React-router urls don't work when refreshing or writting manually.
You can also see the React Router tutorial for how to set up a production Express server.

Community
- 1
- 1

Thomas Wilkinson
- 21
- 3
-
It was working fine with http url, but while I hit the same url with https, I get 404. – hitesh Apr 15 '16 at 14:05
0
Perhaps this answer is relevant to you:
Apache web server doesn't allow me to refresh on /about but on localhost its working fine
I know I also had problems related to HTML5 mode when first setting up react-router.