# Content of redirect pages

**URL:** <https://community.nginx.org/t/content-of-redirect-pages/9642>\
**Category:** NGINX\
**Tags:** reverse-proxy\
**Created:** [June 8, 2026, 10:15pm UTC](https://community.nginx.org/t/content-of-redirect-pages/9642 "2026-06-08T22:15:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xlf](https://avatars.discourse-cdn.com/v4/letter/x/e5b9ba/32.png) [@xlf](https://community.nginx.org/u/xlf)\
**Post date:** [June 8, 2026, 10:15pm UTC](https://community.nginx.org/t/content-of-redirect-pages/9642/1 "2026-06-08T22:15:28Z")

</div>

On any 3XX redirect nginx shows the default nginx page for that kind of redirect.

```
return 301 https://newdomain.com$request_uri

```

How do I change that to show a html page: `/html/redirectpages/redirect301.html` or text: `return 301 "being redirected"`?

I have lots of `server` blocks that redirect to the new `server` block I made. Do I have to change configuration in all the blocks or can I do it only in the new one?

---

<div class="post-metadata">

**Author:** ![system](https://drob5swvtjqxg.cloudfront.net/user_avatar/community.nginx.org/system/32/19_2.png) [@system](https://community.nginx.org/u/system)\
**Post date:** [July 8, 2026, 10:16pm UTC](https://community.nginx.org/t/content-of-redirect-pages/9642/2 "2026-07-08T22:16:23Z")

</div>

Closed on July 8, 2026, 10:16pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
