# Do not redirect to 404, when subpage is missing?

**URL:** https://discourse.gohugo.io/t/do-not-redirect-to-404-when-subpage-is-missing/36385
**Category:** support
**Created:** [January 6, 2022, 12:54am UTC](https://discourse.gohugo.io/t/do-not-redirect-to-404-when-subpage-is-missing/36385 "2022-01-06T00:54:19Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![bublick](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bublick/32/10428_2.png) [@bublick](https://discourse.gohugo.io/u/bublick)
#### Post date: [January 6, 2022, 6:18am UTC](https://discourse.gohugo.io/t/do-not-redirect-to-404-when-subpage-is-missing/36385/3 "2022-01-06T06:18:22Z")

</div>

This is a good solution when I know the subpages’ URLs. But I don’t. Basically, I get content for them via REST API. I need something that is [described here](https://discourse.gohugo.io/t/templates-without-content-files-like-the-homepage-template/16660), but I think for me is enough just redirect to root page

---

_[View the full topic](https://discourse.gohugo.io/t/do-not-redirect-to-404-when-subpage-is-missing/36385)._
