SD2000
May 16, 2020, 12:32am
41
Hello Sir, I’m totally new to deployment.
I’m stuck at the same issue and not able to get over it. I’m trying to deploy my Vue App from GitHub repo: https://github.com/DaveSoham08/AllAboutCOVID
My Netlify App is: https://all-about-covid.netlify.app/
This shows Page Not Found error, although I’ve index.html on my main folder
@SD2000 Your dist
publish directory has what appears to be static assets only, no index.html. One level up is where your index.html file is, but it appears to me that you are bypassing it.
Have you tried reading the documents?
Last reviewed by Netlify Support - August, 2023
Netlify attempts to lookup a file based on several xor filters, and when all of these fail, we end up serving a 404 page. For example, a request made to /example/ would check /example/index.html, /example.html, /example/home.html and several other combinations (not necessarily in the same order) before hitting the 404. However, in case you were not expecting a 404 at a particular URL, you might be interested in finding out the reason and potentia…
SD2000
May 16, 2020, 1:29am
43
Hey, Thank you I tried something and it worked even I don’t know how lol.
But thank you for your help
SD2000
May 16, 2020, 4:38pm
44
Hey, Sorry to disturb you again but due to some reason I had to discard my repo and site.
So Today I started from scratch and still I’m facing a similar issue.
This time my site is redirected but nothing is displayed on screen.
Console says “Failed to load resource: the server responded with a status of 404 ()”
repo: GitHub - SohamDave08/AllAboutCovid19: Real-Time COVID-19 data tracker and News Scrapper
Netlify app: https://all-about-covid19.netlify.app
Please help me out asap
Your page is loading, but you have a problem with your JavaScript: AOS.init(); cannot be found.
SD2000
May 17, 2020, 8:25pm
47
Thank you for that. It solved the issue
Scott
June 27, 2020, 5:05pm
49
@ajitkrsingh0786 , have you checked out the support guide associated with this particular issue?
Yes I have already checked.But i din’t get any solution
Scott
June 27, 2020, 6:52pm
51
Are you sure? Have you seen the very first line?
You have an index.js; we’ll look to serve index.html
My index.html file is inside public folder, whether we can’t put index.html file inide a folder?
Scott
June 28, 2020, 10:10am
53
You’ll need to set your public
folder as your publish directory, and here’s why !
Fine it’s working now.Very very thank you for support and assist.
1 Like
Hey, im new to deployment. trying to deploy my react website but it says :
Page Not Found
Looks like you’ve followed a broken link or entered a URL that doesn’t exist on this site.
Github: GitHub - kennymanman/school
Netlify: https://competent-borg-444b06.netlify.app
Hey, im new to deployment. trying to deploy my react website but it says :
Page Not Found
Looks like you’ve followed a broken link or entered a URL that doesn’t exist on this site.
Github: GitHub - kennymanman/school
Netlify: https://competent-borg-444b06.netlify.app
Scott
August 3, 2020, 1:08pm
57
Looks like it’s working for me! I’m guessing you updated your publish directory to public
?
Because you’re using React, you’ll need a SPA redirect rule which is discussed in the redirects guide (search for Single-Page Apps).
Yeah i visited the post, But i’m new to netlify and coding not sure what to do with ```
/index.html 200
Could you simplify it to me, like where to go and do. Thank you.
perry
August 3, 2020, 5:34pm
59
hey @kennymanman , you’ll need to create a file called _redirects
and add that line of code to it. Place that in the root directory of your project, and redeploy. that should fix things.