404 not getting while refresh the page #31999
Replies: 3 comments
-
We can't give you specific help with WAMP so for that you'll need to reach out to other places like StackOverflow. If you want to preview your site you can use |
Beta Was this translation helpful? Give feedback.
-
@LekoArts We have followed this same tutorial https://www.gatsbyjs.com/docs/deploying-to-digitalocean-droplet/ but with Apache, and we are facing the above same problem. Is there any solution to that? Edit: The URLs work fine on the localhost domain when we do |
Beta Was this translation helpful? Give feedback.
-
here is workaround https://infyom.com/blog/fix-404-while-reloading-gatsby-website-for-dynamic-client-only-route |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Getting 404 while refresh the page

Steps to reproduce
https://github.com/gatsbyjs/gatsby/tree/master/examples/simple-auth
I download this code and create a build.
Then I created a virtual host in the wamp server and run the project.
now click on the profile link and open the page properly but I refresh the page and got 404. I getting the same issue on my website. so, I tried this demo but found the same issue.
Clear steps describing how to reproduce the issue. Please link to reproduction, this makes your issue much easier to diagnose (seriously).
How to Make a Minimal Reproduction: https://www.gatsbyjs.com/contributing/how-to-make-a-reproducible-test-case/
Expected result
The page should be refresh and open properly
Actual result
Getting 404 Page not found
Environment
System:
OS: Windows 10 10.0.19042
CPU: (4) x64 Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz
Binaries:
Node: 14.15.4 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
npm: 6.14.10 - C:\Program Files\nodejs\npm.CMD
Languages:
Python: 3.9.1 - /c/Users/GIGABYTE/AppData/Local/Programs/Python/Python39/python
Browsers:
Edge: Spartan (44.19041.1023.0), Chromium (91.0.864.48)
npmPackages:
gatsby: next => 3.9.0-next.0
gatsby-plugin-react-helmet: next => 4.9.0-next.0
npmGlobalPackages:
gatsby-cli: 3.4.0
Beta Was this translation helpful? Give feedback.
All reactions