Hey, my site is a generic HTML portfolio with no build commands. The site is able to upload but for some reason, the publish directory I appointed “public” is not displaying any of the content I have inside the folder. If I put “public/pages”, the HTML of the index is shown with no CSS or JS files. I have multiple folders for their specific duty such as:
Pages = html pages
CSS = css styles
JS =
I am trying to target all of them so the webpage may run smoothly. The site is being built successfully but once again it keeps displaying the 404 error.
Hi @roycewilliamsj, thanks for the post.
If you have not already visited the Netlify Support Guide below, kindly do so on how to resolve “404 page not found” error after deployment.
@roycewilliamsj This is happening due to the paths that your site is being built with.
The files aren’t extracted from wherever they are when you deploy them, they don’t move, it’s just that whatever is the Publish directory becomes the root, so if you deployed:
Publish Directory = /public/pages = your html files would be viewed at /
Publish Directory = /public = your html files would be viewed at /pages
Publish Directory = / = your html files would be viewed at /public/pages