# Como criar redirecionamento 301 para um novo domínio

**URL:** <https://meta.discourse.org/t/how-to-create-301-redirect-to-a-new-domain/177783>\
**Category:** Product Support\
**Created:** [Janeiro 30, 2021, 4:50pm UTC](https://meta.discourse.org/t/how-to-create-301-redirect-to-a-new-domain/177783 "2021-01-30T16:50:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)\
**Post date:** [Janeiro 30, 2021, 6:56pm UTC](https://meta.discourse.org/t/how-to-create-301-redirect-to-a-new-domain/177783/2 "2021-01-30T18:56:55Z")

</div>

Em geral, eu configuro assim:

```plaintext
server {
    listen 80;
    server_name domain1.com;
    return 301 https://domain2.com$request_uri;
}

```

A diretiva acima pode ser ajustada de várias formas para melhor atender às suas necessidades.

---

_[View the full topic](https://meta.discourse.org/t/how-to-create-301-redirect-to-a-new-domain/177783)._
