Website works Locally and returns page not found error

My website works well offline and when I try to use it on the deployed netlify domain it flashes the page I want and returns page not found error. https://sleepoutsidet4.netlify.app/

@raphaeltaurai Check your browser network tab.

You’ll see that it is loading the main page:

But then your site tries to load a header.html and footer.html file from a different path:

Those files don’t exist:
https://sleepoutsidet4.netlify.app/public/partials/header.html
https://sleepoutsidet4.netlify.app/public/partials/footer.html

Which you can confirm with the Deploy File Browser.

You’ve not said what you’re using, but most systems copy from public to the Publish directory.
So the files don’t end up with /public/ in their URL.
This is demonstrated by your files actually being here:
https://sleepoutsidet4.netlify.app/partials/header.html
https://sleepoutsidet4.netlify.app/partials/footer.html

You will need to fix your file references / URLs.

1 Like

Thank this was really helpful.