How do I reroute one domain to another domain

I have my main site

https://site.com

Then I have a branch deploy of that site
https://branch-deploy.app.netlify.com

I want to have https://branch-deploy.app.netlify.com display at
https://site.com/hello.

I created my netlify.toml file and can’t seem to figure out the right set up. I remember doing this once before. I deployed some HTML to a domain on my main React site years ago.

https://site.com toml

[[redirects]]
from = “https://branch-deploy.app.netlify.com/:splat
to = “/hello”
status = 301
force = true

You need to add the redirect to branch deploy and not the main site. You’ve added it to the main site.

The rule would look like this:

[[redirects]]
  from = "/*"
  to = "https://www.site.com/hello/"
  status = 301
  force = true