Im trying to do a nginx redirect so that areas.test.com goes to index.test1.com/home

So far i've got

```
location / {
rewrite areas.test.com index.test1.com/home redirect;
}

```

But for some reason this isnt working.

What do I need to change?

Thanks