Hello,
I have a problem with deploying React.js web applications on Netlify. When I deploy a web application on Netlify I have a message that is displayed “Page Not Found. Looks like you’ve followed a broken link or entered a URL that doesn’t exist on this site.” How can I fix this problem?
sid.m
August 29, 2024, 7:37pm
2
I’d recommend checking out this support guide:
Last reviewed by Netlify Support - April, 2024
Netlify attempts to look up a file based on several XOR filters, and when all of these fail, we end up serving a 404 page. For example, a request made to /example/ would check /example/index.html, /example.html, /example/home.html and several other combinations (not necessarily in the same order) before hitting the 404. However, in case you were not expecting a 404 at a particular URL, you might be interested in finding out the reason and potentia…
Epeny14
September 2, 2024, 4:20pm
3
I looked and read this topic. I created the _redirects file in the folder public but the error message still appears :
sid.m
September 3, 2024, 3:25pm
4
Could you let us know the name of the site you’re seeing this issue on? I’m no longer seeing a site with the name funny-cascaron-602bec
.
Epeny14
September 3, 2024, 8:47pm
5
Here is the name of the application that I deployed on netlify : moonlit-moxie-a7468b
Epeny14
September 4, 2024, 11:03pm
6
Here is the name of the site that I deployed on netlify : moonlit-moxie-a7468b
Epeny14
September 4, 2024, 11:50pm
7
@sid.m I have already solved the problem. To fix this problem I created the netlify.toml file or I added this line of code:
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
I put the netlify.toml file in the build folder and I deployed the build folder on Netlify.
Then the error message is no longer displayed so I solved my problem.
I apologize for the spelling mistakes, because English is not my native language.
Thank you for the advice trying to help me to fix the problem.
1 Like
sid.m
September 5, 2024, 2:40pm
8
Thanks so much for sharing the fix!
1 Like