# 自动跳转到主地址？

**URL:** <https://meta.discourse.org/t/jump-to-main-address-automatically/216221>\
**Category:** Self-hosting\
**Created:** [2022年一月27日 16:14 UTC](https://meta.discourse.org/t/jump-to-main-address-automatically/216221 "2022-01-27T16:14:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2022年一月27日 20:37 UTC](https://meta.discourse.org/t/jump-to-main-address-automatically/216221/2 "2022-01-27T20:37:41Z")

</div>

> [@xiasummer](#):
>
> 如果“name1”和“name2”都只是由 godaddy DNS 地址设置，并且具有相同的 IP 地址，如果您仍然键入“name1”，它将自动跳转到“name2”。

这就是你想要的。你不需要两个域上的数据。

> [@xiasummer](#):
>
> 但是，如果我通过 cloudflare 设置域名，而 name2 的 IP 地址被 cloudflare 隐藏了。在这种情况下，“name1”将不再跳转到“name2”。

不要这样做。这不会带来任何好处。

请参阅 [更改域名或重命名我的 Discourse？](https://meta.discourse.org/t/change-the-domain-name-or-rename-my-discourse/16098)，但我通常的做法是进行新的安装，然后在此处恢复数据库。

---

_[View the full topic](https://meta.discourse.org/t/jump-to-main-address-automatically/216221)._
