# Preciso de conselhos sobre redirecionamentos 301 em massa

**URL:** <https://meta.discourse.org/t/i-need-advice-regarding-massive-301-redirects/160361>\
**Category:** Self-hosting\
**Created:** [Agosto 10, 2020, 2:35pm UTC](https://meta.discourse.org/t/i-need-advice-regarding-massive-301-redirects/160361 "2020-08-10T14:35:10Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [Agosto 11, 2020, 3:54pm UTC](https://meta.discourse.org/t/i-need-advice-regarding-massive-301-redirects/160361/6 "2020-08-11T15:54:57Z")

</div>

A abordagem mais fácil aqui é configurar um servidor web em `xxx.domain.com` para redirecionar permanentemente (301) todas as solicitações para `domain.com`

Por exemplo:

> **[Nginx Redirect HTTP to HTTPS – TecAdmin](https://tecadmin.net/nginx-redirect-https/)**
>
> How to Nginx Redirect HTTP to HTTPS. This tutorial will help you redirect all incoming request on http to https url in Nginx web server.

mas adaptado para algo como:

```plaintext
server {
	server_name xxx.domain.com;
	
	return 301 https://domain.com$request_uri;
}

```

---

_[View the full topic](https://meta.discourse.org/t/i-need-advice-regarding-massive-301-redirects/160361)._
