<p>You do not need the parent page.</p>
<p>If I understand it correctly:</p>
<ol>
<li>Create a section for your content named dogs. It could be a structure or channel (depends if you need it hierarchically or chronologically).</li>
<li>At Entry URI Format you just type <code>dogs/{slug}</code></li>
</ol>
<p>After this, every new entry of dog, will get the address <code>example.com/dogs/name-of-breed</code></p>
<p>And therefore, there is no example.com/dogs-page. But you could this page to another route, if you like. If not, there will be your 404 page shown.</p>
<p>So <code>Settings -&gt; Routes</code> could be helpful for this.</p>

CC BY-SA 4.0
2022-08-10T17:03:04.220Z
2022-08-10T17:03:04.220Z
Thomas Sausen
<p>The simplest solution is probably to leverage Craft’s template routing, by creating a template <code>templates/dogs.twig</code> (or if you prefer, <code>templates/dogs/index.twig</code>).</p>
<p>As long as there isn’t a “real” <code>https://example.com/dogs</code>URL in your system (ie an element or a custom route), visiting that URL with such a template in place will automatically render that template.</p>
<p>The <code>dogs.twig</code> template itself can either be completely blank, or you use it to redirect the user someplace else, by adding a <code>{% redirect %}</code> tag to it:</p>
<pre><code>{% redirect siteUrl %}
</code></pre>
<p>More info about routing and how Craft resolves URLs for incoming requests can be found <a href="https://craftcms.com/docs/4.x/routing.html" rel="nofollow noreferrer">here</a>.</p>

CC BY-SA 4.0
2022-08-10T17:10:10.553Z
2022-08-10T17:10:10.553Z
Mats Mikkel Rummelhoff
<p>I'm trying to create a new parent subfolder (/dogs) with child pages (/dogs/*). The child pages will have content: <a href="http://www.example.com/dogs/german-shepherd" rel="nofollow noreferrer">www.example.com/dogs/german-shepherd</a>, <a href="http://www.example.com/dogs/chihuahua" rel="nofollow noreferrer">www.example.com/dogs/chihuahua</a>, <a href="http://www.example.com/dogs/pitbull" rel="nofollow noreferrer">www.example.com/dogs/pitbull</a>. There will be NO actual parent page <a href="http://www.example.com/dogs" rel="nofollow noreferrer">www.example.com/dogs</a> at this time. In other words, we do not want a true &quot;top level page&quot; for the subfolder. How should I go about setting this up in Craft? In case it's helpful to know, we already have the children pages but they're under different URLs built off the root so would need to also move those. For example: <a href="http://www.example.com/german-shepherd" rel="nofollow noreferrer">www.example.com/german-shepherd</a>. Thank you!</p>

CC BY-SA 4.0
2022-08-10T16:50:51.643Z
What kind of section are you using to hold the dog entries? Channel or Structure?
CraftQuest
<entries><redirect>
Is it possible to create non-existent parent page in Craft?
# Is it possible to create non-existent parent page in Craft?

(Asked by: username_0 on 2022-08-10)

I'm trying to create a new parent subfolder (/dogs) with child pages (/dogs/\*). The child pages will have content: [www.example.com/dogs/german-shepherd](http://www.example.com/dogs/german-shepherd), [www.example.com/dogs/chihuahua](http://www.example.com/dogs/chihuahua), [www.example.com/dogs/pitbull](http://www.example.com/dogs/pitbull). There will be NO actual parent page [www.example.com/dogs](http://www.example.com/dogs) at this time. In other words, we do not want a true "top level page" for the subfolder. How should I go about setting this up in Craft? In case it's helpful to know, we already have the children pages but they're under different URLs built off the root so would need to also move those. For example: [www.example.com/german-shepherd](http://www.example.com/german-shepherd). Thank you!

**Tags:** entries, redirect
> **Comments:**
> **username_1**: What kind of section are you using to hold the dog entries? Channel or Structure?  

---

## 2 answers

### Answer by username_2 on 2022-08-10. Score: 3

You do not need the parent page.

If I understand it correctly:

1. Create a section for your content named dogs. It could be a structure or channel (depends if you need it hierarchically or chronologically).
2. At Entry URI Format you just type `dogs/{slug}`

After this, every new entry of dog, will get the address `example.com/dogs/name-of-breed`

And therefore, there is no example.com/dogs-page. But you could this page to another route, if you like. If not, there will be your 404 page shown.

So `Settings -> Routes` could be helpful for this.


---

### Answer by username_3 on 2022-08-10. Score: 0

The simplest solution is probably to leverage Craft’s template routing, by creating a template templates/dogs.twig (or if you prefer, templates/dogs/index.twig).
As long as there isn’t a “real” https://example.com/dogsURL in your system (ie an element or a custom route), visiting that URL with such a template in place will automatically render that template.
The dogs.twig template itself can either be completely blank, or you use it to redirect the user someplace else, by adding a {% redirect %} tag to it:
{% redirect siteUrl %}

More info about routing and how Craft resolves URLs for incoming requests can be found here.


---

