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 on December 2022
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 on December 2022
We attempt to serve only /index.html in case you try to load your site without a path, for example:
https://yourdomain.name/
The easiest way for you to see what files your build sent us is to download a copy of the deploy, available from the deploy’s logs page as per this screenshot:
[image]
When you check this, be aware that EACH deploy has this page and icon, so you can download a copy of ANY deploy. For debugging problems with your live…
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 sen…
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