Faisal
April 9, 2020, 7:16pm
1
Hi, Could you please help me with this issue please? I’m getting error ‘Page not found’ when trying to access pages directly through url https://rx-flow.netlify.com/dashboard … However accessing the same path through the app works fine… The code works fine on my local machine so I wonder if this is on your side? Thanks,
perry
April 9, 2020, 7:59pm
2
hi there, did you see these links already?
Last reviewed by Netlify Support - August, 2023
If you’re building a Single Page Application (SPA), or an app that manages its own routes (url paths), you’ll want to add a _redirects file to your publish directory with the following line to take advantage of browser history pushstate:
/* /index.html 200
You can read more information in our docs, which can be found here .
Last reviewed by Netlify Support - August, 2023
Netlify attempts to lookup 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…
If you are still seeing issues after following the troubleshooting steps in this guide, please let us know!
Faisal
April 9, 2020, 8:16pm
3
Thanks! I have just look read them now but they did not solve the issue. I’m still unsure what is causing the issue since it’s working just fine locally! and the paths I request clearly do exist since I can access them via links on the app itself.
perry
April 9, 2020, 8:23pm
4
if it is working locally, then this might be helpful:
Last Reviewed By Netlify Support Staff: December 2022
Are you struggling to understand why your project runs locally but errors out with missing files or logs that point toward issues with case when you try and build on Netlify? You are not alone. Often, case (as in: UPPERCASE or lowercase letters in filenames or paths) can cause problems. Here is a guide to understanding how case sensitivity issues present themselves, why they arise, and how you can fix them!
1. Errors you might see
Case sens…
Faisal
April 9, 2020, 8:37pm
5
I have just tried run the same app on Linux and it ran just fine. Am I missing something?
Faisal
April 9, 2020, 8:47pm
6
Is there a way to get access to the logs to see what is going on?
Scott
April 9, 2020, 10:18pm
7
Hey @Faisal ,
I’ve checked your last successful deploy: Netlify App
I can see that this is a React app. I believe we can solve this with the addition of a _redirects
file in your build directory which contains:
/* /index.html 200
Let me know how you get on!
Ref 1 , Ref 2