# 如何设置不存在的页面重定向

**URL:** <https://meta.discourse.org/t/how-to-make-a-redirect-from-non-existent-pages/402807>\
**Category:** Self-hosting\
**Created:** [2026年五月12日 18:30 UTC](https://meta.discourse.org/t/how-to-make-a-redirect-from-non-existent-pages/402807 "2026-05-12T18:30:30Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Vsekraski](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vsekraski/32/553869_2.png) [@Vsekraski](https://meta.discourse.org/u/Vsekraski)\
**Post date:** [2026年五月12日 18:30 UTC](https://meta.discourse.org/t/how-to-make-a-redirect-from-non-existent-pages/402807/1 "2026-05-12T18:30:30Z")

</div>

当用户访问不存在的页面时，会显示错误信息：“错误。该页面不存在或对公众隐藏。”是否可以将用户从此类页面重定向到目标页面？

---

_[View the full topic](https://meta.discourse.org/t/how-to-make-a-redirect-from-non-existent-pages/402807)._
