# 如何创建301重定向到新域名

**URL:** <https://meta.discourse.org/t/how-to-create-301-redirect-to-a-new-domain/177783>\
**Category:** Support\
**Created:** [2021年一月30日 16:50 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:** 8

<div class="post-metadata">

**Author:** ![Idan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/idan/32/198212_2.png) [@Idan](https://meta.discourse.org/u/Idan)\
**Post date:** [2021年一月30日 20:40 UTC](https://meta.discourse.org/t/how-to-create-301-redirect-to-a-new-domain/177783/8 "2021-01-30T20:40:28Z")

</div>

@itsbhanusharma 我正在实施代码。我的问题是，既然我打算在 Google 更新 URL 之前暂时保留旧服务器，Let’s Encrypt 能否自动续期？由于这个 301 重定向变更，我是否需要添加任何配置以防止 Let’s Encrypt 续期失败？

[Set up Let’s Encrypt with multiple domains / redirects](https://meta.discourse.org/t/setting-up-let-s-encrypt-with-multiple-domains/56685) 这个方案可行吗？

我想将 .well-known/acme-challenge 排除在重定向之外。

参考这个关于 301 重定向与 Let’s Encrypt 的 [问题](https://community.letsencrypt.org/t/redirect-to-https-causing-problems/60531/6)。

---

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