I just deployed my react app build on c-panel. The app includes different routes and everytime I try to get to one of them I get 404 Not found
.
For example if I
If your application is working for all the routes when you navigate using <Link>
and history.push
but throwing 404 Not Found when you type a URL other than http://example.com, say http://example.com/articles, directly in your browser, you need to:
Teach your server to handle 404s by redirecting to the index.html page.
You can do this in one of the following ways:
Also, check notes-on-client-side-routing and How to deploy on cPanel.