Page not found - Looks like you've followed a broken link or entered a URL that doesn't exist on this site

Just got started with Netlify as non-technical person

I uploaded all my files and my index.html

it says site is live but i cant see it ¯_(ツ)_/¯

https://nervous-aryabhata-72ef5c.netlify.app/

Hi, @guiseiz, there is no such site anymore. Did you possible delete it or rename it?

We have a guide that covers this issue here:

Please give that a look and if it doesn’t help, please let us know and send us the updated link to the site.

1 Like

Hi Luke yes - i ended up deleting and starting frmo scratch via github and that worked

in retrospect I should have kept it up for troubleshooting :pray:

1 Like

I have published site sucessfull but when i open this site i m getting page not found error

Hi, @coderkishor. Did you read the support guide above? If so, did you try the troubleshooting steps there? If you did, what did you discover?

Hi i am new to netlify because it was introduced to me during a bootcamp. My site works perfectly on my loaclhost but after i deployed to netlify using my github i have Page Not Found. Looks like you have followed a broken link. I read through the complaints of people who had similar situation by creating a netlify.toml file but still all to no avail. Could you help

Name of Netlfiy deployed site: https://triphavenhomes.netlify.app/
github repo: GitHub - Nwaigba66/triphaven_frontend

@Gloria have you read the support guide linked above? If so, can you let me know what you’ve already tried to fix this issue?

I read the support guide before posting…I created a _redirect file and also a netlify.toml file at the roots of my folder.I also moved my index.html out of the folder where it was hidden. Upon deployment on netlify it shows my deployment passed but i cannot access my page

@Gloria The index.html needs to reside in the public directory of your project.

Your issue is covered in point 1 of the guide linked above: you are publishing the wrong directory. I can tell you are publishing the react-context-api directory because I can see the package.json of the project at https://triphavenhomes.netlify.app/react-context-api/package.json.

As per the Vite Deploying a Static Site documentation the default build directory is dist. In your case react-context-api/dist is the directory you will want to publish.

Okay, so in the my publish directory on netlify, i should write react-context-api/dist.

I just did the deployment again and i get a failed initialization because of the reason according to netlify
react-context-api/dist does not exist.

Also please what should i write as my build command on netlify?

These should be your settings:

  • base directory react-context-api
  • command npm run build
  • publish directory dist (the UI would automatically add react-context-api/ to the start of this value)