hi! my site is built with react, my site: https://cynthia-eddy.netlify.app
I have an index-html page.
when i click the back button on my desktop i get the message above. However, i don’t get the message on my ipad or iphone and the back button works on both of those devices…
thanks!
hey there @cyn7117,
looks like you are maybe seeing a cached version on your desktop. I would try from an incognito window. This is what i see:
Hi perry - thanks for the quick reply! it loads and works okay, but when you click on a individual project and go to the individual projects’ site and tHeN click the back button that’s when the message appears…
Hi, @cyn7117, this site uses client side routing. The solution for the 404 is to add the following redirect rule to the site:
/* /index.html 200
There is more about how do create redirects here.
Personally, I prefer the _redirects
file format. These rules can also be added in the netlify.toml
configuration file. (In fact, you can even add rules using both files and it still works.)
If there are other question or if this doesn’t fix it, please let us know.
thanks - i think the below actually solved it(?)
in a netlify.toml file in the root directory…
[[redirects]]
from = “/*”
to = “index.html”
status = 200