@kautif What about it don’t you understand?
It works because it proxies every request made to your site to the /index.html
file, basically it returns the /index.html
file no matter what URL you access the site via.
So instead of a request to /user/games
trying to return a file from /user/games.html
(or /user/games/index.html
), the proxy causes it to return /index.html
at which point the route (/user/games
) is handled by your react application… which only exists on that single index.html
page.