[Support Guide] I’ve deployed my site but I still see "Page not found”

Hi, @GraceCayford. That is up to you. I see the HTML file is named links.html. This makes it available here:

https://gracecayford.netlify.app/links

If you want the site to work without the links on the end of the URL then, yes, the solution is to rename that file index.html instead.

​Please let us know if there are other questions about this.

Thanks a lot! I changed it, it’s working now!

Hi, Do you know I also encounter this error some months ago. It serve my page at first instance and if you refresh the page aside from the homepage it throws a 404 page. This almost causes an issue between me and my client because the deadline has passed and am yet to deliver his job, I later took the site to Heroku where I bundled the backend and frontend together and it works perfectly fine there. But to my surprise, I encounter the same error today again which almost pissed me off then but I was able to conquer the error today. oh my gosh! joy overwhelmed me. How I solved the error?.
I Import HashRouter from React-router-dom instead of BrowserRouter. I get to know browser router is used when your app routes were backed by a server and the hash-router is used when everything to your app is from the frontend. Try it, dude, it works!

Thanks!!! :raised_hands: :clap: :clap: :clap:

A post was split to a new topic: Page not found - blank page

ok but then how do i tell netlify, when i dont specify a root folder so it uses the entire repo which has index.html in the root, to look in the root folder for index.html? why isnt it finding it?

@jwhitty Absent instructions to the contrary, Netlify should pick up the root folder of the repository. If there is an index.html file there, it should display. If not, have you tried downloading your deploy folder to verify that your files are where you think they are?

Yes I did! Only sadly I see just the build files and the one jpg I uploaded as an asset

I’m also facing the issue. The deploy works fine. Once I tried visiting the page, it says This site can’t be reached. When I visit using the Cognito the first time, it works then stops once I refresh.
I’ve downloaded the deploy and my index.html is sitting on the root level.
Please, I need help with this

Hi Luke,
Please, I need help on my site. It says ‘This site can’t be reached’ when I visit the webpage. Deploy works fine and the index.html is also sitting on the root level of the project.
When I tried visiting using Cognito, it works until I tried to refresh the page and it stopped working.
Please, I need help with this.

@jwhitty So, to be clear, there is a file called index.html at the root level of your online files?

@sadewole Welcome to the Netlify community.

Please help us help you by writing a good post!

All issues: Provide your Netlify site name (e.g. gifted-antelope-58b104.netlify.app).

DNS or SSL issues: Tell us your custom domain(s) (e.g. mycustomdomain.com). We can’t help if we don’t know your domain.

Build issues: Tell us about your workflow, including what SSG you are using.

If you are deploying via git, give us the URL of the repository.

Let us know what you have already tried and what the results were.

The better the post = the faster we can help!

I changed the publish directory from /dist to / and it is working now. other examples all refer to the build directory/publish dir linking to the build folder, but that didnt seem to work for me

all good now

Thanks @gregraven for the response.
The site url is https:samador-dev@netlify.app

Deployed using git https:github.com/sadewole/samador.dev
Though the deployment is currently not on the base branch.

@sadewole You site loads for me here in Southern California, but it’s huge. The page code is more than five megabytes and there are calls to dozens of external assets. After a couple of refreshes, the page did fail to load, though, and there is a broken link/route.

I can’t determine why your page would not load on after a couple of refreshes, but I would think that reducing the sheer size of your code base would be a good first step in trying to fix this issue.

Saved me too. Thank you! :slight_smile:

Umm so I don’t know why I’m getting this error, my site got deployed and it even loads but if I try to load it by the routes then it shows me that “page not found” error.
For example these are some of the routes my site has

  1. https://linksforyou.netlify.app/ (main route)
  2. https://linksforyou.netlify.app/months
  3. https://linksforyou.netlify.app/months/January

All 3 routes work perfectly but only if I go to the “1” route before
If I go to 2 or 3 first then I get “Page Not Found”

Github repo link
https://github.com/zarc1411/LinksForYou-frontend

My build settings
https://files.catbox.moe/ndei97.png

ETA
My issue got solved!

Hello,
My site is showing page not found error even though an index.html file.

https://ecstatic-shirley-62bf6c.netlify.app/

@shubhitiwari426 Welcome to the Netlify community.

Please double-check your deploy to make certain that your index.html file is at the top level.

Hi, I’m new here.

Just did my first successful deploy from Hugo-generated site.

When I attempted to pull up my site from my domain name kulbe.dev, I get a 404.

When I attempt to pull it up from the Netlify name kulbedotdev.netlify.app, it comes up, but there’s no theming to it.

When I pull it up by the domain name, from my phone (but here’s the kicker… with wifi off), it comes up properly, theme and all.