Redirects not working

I followed the instructions from
https://www.netlify.com/docs/redirects/#handling-hostnames-and-protocols-differently

here is my _redirects

https://mysite.netlify.com/* https://mysite.org/:splat 301!

https://mysite.org/subfolder/* https://subdomain.mysite.org/:splat 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