Open Priyanshu85 opened 1 year ago
What the content of the file should look like:
I tried this, but it isn't working
/ecommerce https://lek-dashboard.netlify.app/ecommerce 301
/* /index.html 200
Make a file named _redirects in the public folder and add the above content in it. @khalidfasely
Thank you, I tried this, and it worked for me: create a netlify.toml on the public folder with this content
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
then run build @Priyanshu85
When reloading on netlify it shows Page not found. This can be solved using redirects file in the public folder