How to Set Up a 301 Redirect from example-a.com to example-b.com?

Hello Netlify community,

I’m relatively new to Netlify, and I’m looking for guidance on setting up a 301 redirect for my website. I have a domain, let’s call it example-a.com, and I would like to redirect all traffic from [example-a.com](https://example-a.com) to another domain, say [example-b.com](https://example-b.com).

I understand that Netlify provides powerful redirection capabilities, and I’d like to leverage that to ensure a smooth transition for my users. Could someone kindly walk me through the steps to achieve this using Netlify?

Specifically, I’m interested in:

  1. How to configure a 301 redirect from example-a.com to example-b.com.
  2. Any considerations or best practices I should be aware of during this process.

I appreciate any assistance or insights you can provide! Thank you in advance.

@sundeep-sharma-neopa This is addressed in the documentation here:
https://docs.netlify.com/routing/redirects/redirect-options/#domain-level-redirects

https://example-a.com/* https://example-b.com/:splat 301!