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

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:

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 site, make sure it says “Published Deploy” on the header as in the screenshot above, and to find the published deploy in your listing, see this example:

If you’re getting the Page Not Found error, I think you’ll see that you have no index.html at that path (in the root of your site, based on the above examples). If you think this isn’t problem, please comment below and we’ll try to help out!

3 Likes
Page Not Found After deployment
Site cannot be accessed broken link or url that doesn't exist
Looks like you've followed a broken link or entered a URL that doesn't exist on this site
Deployment is Fine, Still Getting a Page Not Found
Some images producing 'failed to load resource' error on Netlify build
Page not found - Looks like you've followed a broken link or entered a URL that doesn't exist on this site
I still see "Page Not Found" Even though I have an index.html file
ReactJS SPA Reload Page Fails
404 Not Found after deploy
Getting 404 error on my deployed website
Page Not Found (Not Tech Savvy, Help Plz)
Index.html not working?
Reactjs deployment
404 after successful deployment
Page not found in netlify
Issue with proxied function api call
How to get netlify to point to an index.html file that is in a folder that is not the main folder
Scripts not being loaded
React app, page not found error
Page Not Found (Looks like you've followed a broken link or entered a URL that doesn't exist on this site)
Broken links issue
The site will not deploy
Page Not Found on deploy
I am getting a "page not found" error
NuxtJS deploy/building failing
Previously netlify site gets page not found error
Links to my netlify apps are broken
"Looks like you've followed a broken link" when viewing site
Multiple failed deploys
My site renders "Not Found" on going to it
How do I deploy a create-react-app with netlify functions without errors?
Shows as Post Deployed, but Does not reflect on website
How to link existing domain name to new netlify website
Deployment issues, Rendering blank page
Deployed the basic bootstrap vue app and have page not found
Page Not Found, and no build
Trouble deploying static website
"Looks like you've followed a broken link" when viewing site
Deploying single page applications
Only some posts are visible when deploying with Jekyll/Github
Support Guides - Or, how to find answers for frequent questions!
Cannont get website to deploy
Https:/cloud8.netlify.com
Page Not Found, URL that doesn't exist on this site
Maven, issue with non-zero code: 127, maven command not recognised, configuration file present
Https://compassionate-kare-eb0ded.netlify.app
Netlify publishes old website after Github update (continuous deployment)
Unable to access the site- Page Error
Page Not Found. index.html works fine locally but not on Netlify
Website no coming up after setting up custom domain
Broken Root but index.html exists and works
Site not showing up
Page Not Found Looks like you've followed a broken link or entered a URL that doesn't exist on this site
I am getting error - Page not found
404 page not found after deploy a new page
World's dumbest netlify.toml deploy failing on homemade static site generator
Says Page Not found on Json API
Only the homepage loads, but other routes are not working showing broken url
الصفحة غير موجودة
Bought a domain, connected it, and now its saying "page not found"
Can't access my netlify site / netlify site won't load
Deployment is Fine, Still Getting a Page Not Found
Redirect all requests, except two slugs
Page not found after deployment several times
404 issue on my website
Themeforest template pushed via GIT error thrown as Page Not Found
URL Path's display "Page Not Found"
No repository files added to deploy preview with `netlify deploy` - "Page Not Found"
My site isn't online
Having domain problems
Changing site name breaks site
Slow TTFB for main.js (Vue)
Swapping Github origin for a Website Already Deployed
I'm having trouble getting my website to load
Netlify Custom subdomain - Coexist React.js site on Netlify and WordPress subdomain site on different domain
"Page not found" Node.js application
Page not found after successful Deploy and Publish
Nuxt app with yarn not building dist folder
404 error when submitting form
Nuxt.js deploy fails, "FetchError: invalid json response body"
Page Not Found Exception - Billing error
"Looks like you've followed a broken link" when viewing site
Why won't my website show up on Netlify despite paying for domain and successful deployments?
Site cannot be accessed or broke url doesnt exist
Deployed netlify website using azure pipelines- page not found
Website Not Launching?
Some images producing 'failed to load resource' error on Netlify build
Sitemap is invalid
Is anyone having issues with the Contact Widget of Hugo's Academic-Kickstart?
File really stuck in Netlify CDN
URL is not working
Help! page not found
Need help with site building
Page Not Found Looks like you've followed a broken link or entered a URL that doesn't exist on this sit Error
Error 404 message after initial successful deployment
I'm getting 404 Error on my website
Deploying React App
Page Not Found after link netlify to Github for continous deployment
Changed code, but not seen on webpage
Subsequent builds are not updating site
Page not found for route "/login"
Beginner Problems with Deploying (.app instead of .com)
404 error page not found
Support for: NET::ERR_CERT_COMMON_NAME_INVALID
Https://codecombact.netlify.app
HELP with Delopyment
Page Not Found went refresh the website
CRA in a repo's subfolder
Build issue with react-app
What should I set my Publish directory or Build command to
Page not found after deploy
Netlify broken site message
Issues deploying my files
PAGE NOT FOUND issue
Build process complete, unable to deploy site
Trying to deploy simple js application and reciving 404 error
Failed deployment from Github
Ejs is not working in Netlify!
Page Not Found following publication
Project deploy notworking
Page Not Found while deployment
Page Not Found Error
Page Not Found error. Downloaded build working in local but not on netlify site
Unable to deploy node.js/ejs stuck on building
Problem with the page not found
Broken link after deployement SOLVED
Page not found when deploying Nextjs

Another common cause for this that I’ve noticed comes from not specifying in the deploy settings which folder to publish.

If your project has a build which generates the site to publish, be sure to tell Netlify where to find that directory.

In the example below, the “Publish directory” is dist

Find this in your settings at:

https://app.netlify.com/sites/{YOUR_SITE}/settings/deploys#continuous-deployment

7 Likes

I can reach my website with url, but it shows the error when I refresh the page, or leave the page idle for a while. I use “CI= react-scripts build” and by default the folder is /build. And I do have [[redirects]] in netlify.toml.
Screen Shot 2020-09-05 at 4.52.59 PM

In order to troubleshoot this, we need to be able to track the HTTP response with this issue. The simplest way to do this is to send us the x-nf-request-id header which we send with every HTTP response.

There more information about this header here:

If that header isn’t available for any reason, please send the information it replaces (or as many of these details as possible). Those details are:

  • the complete URL requested
  • the IP address for the system making the request
  • the IP address for the CDN node that responded
  • the day of the request
  • the time of the request
  • the timezone the time is in

Im still unsuccessful with this error and still seeing Page Not Found
I’ve done the following

  • This site was dragged and dropped for upload
  • Created netlify.toml that is located in my “root” Public folder

Screen Shot 2020-09-18 at 7.23.16 PM

Still not sure why this is happening. Can you please help? Thanks

I am afraid that you will not be able to deploy Nextjs to Netlify without losing functionality.

It should work, meaning that it will not throw errors, with the following netlify.toml

[build]
command = "npm run build && npm run export"
publish = "out"

If you read Nextjs docs on the next export command you will see that you lose a bunch of very interesting Nextjs features.

I moved my app over to Vercel ( Nextjs own deployment structure ) due to this.

See also this discussion

Have you seen these articles? They talk through best practices for Next.js on Netlify:

They may not solve all of your problems, but I think they will solve some :slight_smile:

Hi Dennis, Hi everyone.
I’m Lowi, newbie here.
I’m stuck with 404 page though the deployment is published.
I’m using an Eleventy theme that runs in localhost.
I checked the /index.html and it seems good.
Please could you help me?
Thanks in advance!

Here’s a pic showing deploy log

Hi, @lowi307. What site is this for?

You can private message (PM) that to one of our support staff and I’ve confirmed that PMs are enabled for your community login. Note, that only one person can see the PM and this will likely mean a slower reply than posting the information publicly. Please feel free to reply to however you prefer though.

1 Like

Hi @luke, thanks for replying!
I sent you a PM for better communication, then I’ll post the solution here.

I deployed my site with a custom domain I purchased from you guys and I’m getting a 404 error with “Looks like you’ve followed a broken link or entered a URL that doesn’t exist on this site.”

TL;DR: switch from BrowserRouter to HashRouter.

I was able to enter my react site with the link and even access the routes with the nav links BUT when i refresh any page exept the homepage the i got this annoying 404 error (I already have my styled 404 page) and when i try to access any page from the url even if it exist i get the same 404 error.

MY SOLUTION:
I switched from using BrowserRouter to use HashRouter from react-router-dom

3 Likes

Hi,
I just started using Github, and I realized that my code was rather properly written and I was able to publish it as well, but for some very odd reason “Page not found” error kept popping up. Even after downloading the Deploy, as instructed, I can see that the downloaded “published” file has the “index.html” in it. Would you be able to assist me with this?

@rmanshani06 Welcome to the Netlify community.

Please provide your Netlify site name, domains, and other information when you post. The better the post = the faster we can help!

Is your index.html at the top level of your website? That’s where it must be. If it is in a sub-folder the default URL won’t find it.

Netlify Site Name: https://practical-varahamihira-e3e406.netlify.app/index.html
Domain Name: https://practical-varahamihira-e3e406
I hope this helps.
When you say if it’s at the top level of my website, can you elaborate a little on that?

Hey @rmanshani06,

Site’s loading for me out in the UK! You may want to clear your browser’s cache :+1:.

Hi,
the reason why I contacted you was regarding the fact that if you submit on the Demo Contact Tab, that is when the “error” pops up of the “Page Not Found”. Instead, I think it should be “Thank you for your response”. You can correct me, if I am wrong about this?

To be more specific, the Form submission tab is what is not working for me on Github and that is when the error pops up of “Page Not Found”.

You’ll want to ensure you add a success page successfully. You should check out the docs!

If you continue to encounter errors, please create a new topic as we’re now looking more specifically at forms.

I just began HTML/CSS and I created my repository & Linked it with Netlify yet i get the same issue what do i do?