Rewrites not working

  • chic-alfajores-398231 is the site name
  • I am using create react app
  • I am deploying from CLI because my build was failing because the process was being killed by a command using “kill -9”.
  • I have tried using _redirects (file) as well
  • I have applied 3 rewrites
  • I am getting 500 as the status code for the request in the browser
  • using proxy inside package json
  from = "/auth/*"
  to = ""
  status = 200

  from = "/api/*"
  to = ""
  status = 200

  from = "/*"
  to = "/index.html"
  status = 200

Hi @shubhanshusrivastava,

Thanks for reaching out!

We have a blog post for how to setup redirects here:

Note there are two ways, using a _redirect file or a netlify.toml file.

You can also find more information regarding redirects here:

and a Support Guide here:

For the redirects you mentioned, please make sure that the netlify.toml file is in the root directory of your project and is correctly named. Netlify expects this file to be in the root directory to read and apply the rules.

I have done all the things correctly, still facing the issue.

I was facing the same issue.

did you manage to get any solution regarding this?

@shubhanshusrivastava, could you share a HAR file recording showing the error 500?