My website will not upload and it shows a 404 error when I go to the domain. I know fully that my html code is correct, but noticed I hadn’t set a publish directory or build command. What is a directory and what should I set it to?
perry
September 3, 2020, 3:56pm
2
Hi there,
Did you see this guide yet? This is the best place to start for “Page Not Found” issues.
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…
If you are still seeing issues after following the troubleshooting steps in this guide, please let us know!