Netlify reload 404 error resolved

dkp1903 profile image Dushyant Pathak ・1 min read

Netlify is a popular website that can be used to host your websites/web apps.

However, here is a possible error that you might see when you happen to reload your netlify page.

Alt Text

Here's an easy hack:

  • Go to the folder which is published to netlify.
  • Create a new file called netlify.toml.
  • Copy and paste the following code:
from = "/*"
to = "/index.html"
status = 200

Note here, it doesn't matter if you don't have an index.html page in your web app. This just works.

Cheers, and happy coding.


Editor guide