Page Not Found for my React App

I’m reaching out to report an issue with the website. Whenever I try to access a certain page or link, I’m consistently encountering a “Page Not Found” error message. I’ve double-checked the URL for any errors, but the issue persists.

Could you please investigate this matter further and provide assistance? It’s crucial for our users to have seamless access to all parts of the website, and resolving this issue promptly would greatly enhance their experience.

Hi, @Shivanshu_Dwivedi. What site is this about?

@Shivanshu_Dwivedi It sounds like your site might be an SPA (Single Page Application) and that you’re seeing a 404 when accessing pages directly or hitting ‘refresh’ in the browser.

See the warning block in the documentation here:
https://docs.netlify.com/configure-builds/javascript-spas/#build-configuration-for-javascript-spas

Avoid 404s for SPAs
If your project is a single page app (SPA) that uses the history pushState method to get clean URLs, you must add a rewrite rule to serve the index.html file no matter what URL the browser requests.

The rewrite rule you must add is explained here:
https://docs.netlify.com/routing/redirects/rewrites-proxies/#history-pushstate-and-single-page-apps

_redirects

/*  /index.html  200