Solution of Page Not Found error on Netlify.

--

nasir-portfolio.netlify.app

After deploying a web application on Netlify. Many of the application faces page not found error. The solution to this error has come.

To solve this issue:

  1. Create a file in root directory named: netlify.toml
file creation in root directory

In this file, write the code:

[[redirects]]

from = "/*"

to = "/"

status = 200

code

2. Push the code in github and deploy on Netlify.

Wait for the magic.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Md. Nasir Uddin Shoyas
Md. Nasir Uddin Shoyas

Written by Md. Nasir Uddin Shoyas

A junior-level Full Stack Web developer, interested in expanding my knowledge on developing web applications and collaborating with others

No responses yet

Write a response