I teach college web development classes in Denmark and I have been messing around on the Internet since the WWW became a thing.
I love simple solutions and humour!
This is an issue no matter what platform you deploy to.
Netlify made it easy, but depending on what platform you use, you need to checkout their documentation on how to redirect all requests to /index.html
You might wan to consult with the host server, to find out the site server, and how to configure it work. (apache, nginx, they all have a way to redirect).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Is it deployed on Netlify ? If yes, you need to add a
_redirects
file in your public folder like so :This is an issue no matter what platform you deploy to.
Netlify made it easy, but depending on what platform you use, you need to checkout their documentation on how to redirect all requests to /index.html
Not on Netlify unfortunately. I just run npm run build, got the files and uploaded them on a web host server my friend has purchased.
This is not the problem with RR per se, more of a server-side issue for SPAs.
e.g.) The same error occurs on IIS as well.
How to deploy React Application on IIS Server
sumitkharche ・ Dec 8 ・ 3 min read
You might wan to consult with the host server, to find out the site server, and how to configure it work. (apache, nginx, they all have a way to redirect).