"Page Not Found" when trying to access a site deployed on Netlify
I ran into this issue, when I refresh my web app that is deployed on Netlify,
Page Not found
Looks like you've followed a broken link or entered a URL that doesn't exist on >this site.
← Back to our site
I found a solution to the problem on stackoverflow
Solution
In your public
folder (folder which contains index.html) create a file called _redirects
with no extension. Then, type the following inside it:
/* /index.html 200
Now save, commit, push and publish. :)
Reason for "Not Found" is because, when using router eg: React Router it handles all the routes but when you directly goto an endpoint, netlify must know where to redirect you. That is what we are specifying in the _redirects
file.
I like this blog
How to put data from RTK query into state slice in Redux toolkit
Someone asked the question How to put data from RTK query into redux slice
I found an answer here on a dev blog
How to fix failed to push some refs to gitlab?
I ran into this issue, when I tried to push my project to gitlab.
error: failed to push some refs to 'https://gitlab.com/
I found a solution
first step: I ran git pull
second step: I ran
git pull --rebase origin [branch]
Thank You, Please follow me
Top comments (0)