DEV Community

Dushyant Pathak
Dushyant Pathak

Posted on

3 3

Netlify reload 404 error resolved

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:
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
Enter fullscreen mode Exit fullscreen mode

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.

Top comments (1)

Collapse
 
coderoo7 profile image
Shubham β€’

Now you can place the file in root directory of your project. And it will automatically handle redirection.

Image of Docusign

πŸ› οΈ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more