'page not found Netlify deploy

I am trying to deploy a simple portfolio website built with HTML, SCSS and JS on Netlify but getting a page not found error after deployment. I have 3 folders,

  1. files/ where css, images, and js files are.
  2. pages/ where index.html, about.html etc are.
  3. scss/ where main.scss is.

Now, when I deploy a website and visit a link, I get page not found error. But when I add /pages to the link, my site works. I tried putting /pages in the base directory but then I only see the html page without any css. I also tried putting everything in files/ folder, but the problem is still the same.

Can someone please help me resolve this issue? I shall be thankful to you.



Solution 1:[1]

Have you tried checking their build configuration to check if your site's configuration is correct? The documentation on that matter can be found here.

Solution 2:[2]

Are you uploading main.scss or style.css. As you have to link style.css

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 orangesheep
Solution 2 Saurav