Page Not Found Error for Vite+React app

PLEASE help us help you by writing a good post!

But the ones that start with video are not working. For ex.: https://reliable-pegasus-5a5e0c.netlify.app/video/Amateur%20Swinger%20Party?id=66b29020b8d3a95a440b208c

or The ones that include searches. For example:

https://reliable-pegasus-5a5e0c.netlify.app/most-viewed/India/0/1

My App.jsx:

the website renders when run locally without the build while in production, I do not understand what Is causing this error, also I am a beginner so I do not know how to fix this. I have connected my github account to netlify, it would be nice if someone from the support helps me fix this issue asap.

The better the post - the faster the answer.

@sankalps63 I don’t see any of your pages as working, I presume you have deleted the site.

Nobody will be able to help without more information, and they cannot debug from a screenshot.

Since your project is Vite based you can try running:

npm run build && npm run preview

This will test your site using any build configuration you have, not the ‘development server’.

You’ll probably find that the same issues occur when viewing the built output.

You can learn more about it here:

If the same issues do occur, then you’ll know it’s unrelated to Netlify, and you’ll be able to debug them locally.

No, actually I changed the subdomain that is why none of the pages you see are working. Also I have solved the problem by adding Netlify.tpom redirects into my react app and now everything works fine. Thank you for replying to my comment.

Since I couldn’t actually test your site I just responded with the simplest way people working with Vite can quickly determine if their issue is Vite related or Netlify related.

In your case it just sounds like you were either missing redirects or had them configured incorrectly.

Great to hear you were able to self solve.