# Redirects not working

**URL:** <https://answers.netlify.com/t/redirects-not-working/1833>\
**Category:** Support\
**Tags:** redirects\
**Created:** [July 3, 2019, 6:12pm UTC](https://answers.netlify.com/t/redirects-not-working/1833 "2019-07-03T18:12:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasenmichael](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/jasenmichael/32/1598_2.png) [@jasenmichael](https://answers.netlify.com/u/jasenmichael)\
**Post date:** [July 3, 2019, 6:12pm UTC](https://answers.netlify.com/t/redirects-not-working/1833/1 "2019-07-03T18:12:04Z")

</div>

I followed the instructions from  
[https://www.netlify.com/docs/redirects/#handling-hostnames-and-protocols-differently](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.

---

<div class="post-metadata">

**Author:** ![fool](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/fool/32/37_2.png) [@fool](https://answers.netlify.com/u/fool)\
**Post date:** [July 4, 2019, 6:28pm UTC](https://answers.netlify.com/t/redirects-not-working/1833/2 "2019-07-04T18:28:29Z")

</div>

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`
