Redirects not working

I followed the instructions from

here is my _redirects* 301!* 301!

Problem solved as I was writing this…

since I am using a build command and a dist folder, the _redirect file must be in the dist folder after build, in my case using Nuxt, I had to put the _redirects file in the static folder of the root directory of my Nuxt app.

Great find, Jasen!

It is a fairly common pattern that several site building frameworks such as some React-based ones and Jekyll really don’t like to see the file in your output directory before building (or in Jekyll’s, case, even in the root of your repo by that name! Jekyll does NOT hate text files there, though…), so this pattern may be useful in a build command:

do-my-normal-build && cp netlify_redirects.txt dist/_redirects