D
D
DavidWork2020-07-20 14:01:28
React
DavidWork, 2020-07-20 14:01:28

React BrowserRouter 404 error after page reload?

Good afternoon.
I'm using BrowserRouter on LAN and everything works fine. After uploading to the server, when I go to any Rout and reload the page. Throws page not found error.
Tell me how to solve?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2020-07-20
@miraage

Set up the web server accordingly. Google "nginx spa configuration" or "apache spa configuration".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question