Only the homepage loads, but other routes are not working showing broken url

I have multiple routes in my react project. But only the homepage loads perfectly, but other routes are not working. But everything works fine locally.

Hi there,

Did you see this guide yet? This is the best place to start for “Page Not Found” issues.

If you are still seeing issues after following the troubleshooting steps in this guide, please let us know!