I host mine react project to Namecheap server. It's working fine, but when I go to about or other pages and reload this page the page is gone and it shows me a 404 error. why did I get a 404 error and how to fix it?
Asked
Active
Viewed 64 times
0
-
You need to configure your server to redirect your request to index.html instead of 404 page. nginx example: ` try_files $uri /index.html;` – Wraithy Jan 25 '22 at 12:28
-
I'm sorry, I don't understand. Do you have any usefull resources for this issue? – Sumon Chandra Jan 25 '22 at 12:32
-
try this question: https://stackoverflow.com/a/47505427/16116506 – Wraithy Jan 25 '22 at 12:35