# Creating sub-directories

**URL:** <https://forums.realmacsoftware.com/t/creating-sub-directories/31247>\
**Category:** RapidWeaver Classic\
**Created:** [February 17, 2020, 9:33pm UTC](https://forums.realmacsoftware.com/t/creating-sub-directories/31247 "2020-02-17T21:33:41Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![oldgustav](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/oldgustav/32/2477_2.png) [@oldgustav](https://forums.realmacsoftware.com/u/oldgustav)\
**Post date:** [February 17, 2020, 9:33pm UTC](https://forums.realmacsoftware.com/t/creating-sub-directories/31247/1 "2020-02-17T21:33:41Z")

</div>

We are in the process of adding several scores of new pages to an exiting RW site that will be ‘nested’ according to their UK region. So for example: [sitename.co.uk](http://www.sitename.co.uk/uk/wales/west-wales/pembrokeshire/st-davids/campsitename/index.html).

I have created some of the regions as per the attached screenshot - but before continuing it occurred to me that there will never be any content in the ‘regions’, so do they need an ‘index.html’ file or can they just contain the next level down folders?

![42](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/d/6/d65ebdf3ba4ef654fd2365f85c062c3a09e4f1bf.png)  
 ![41](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/1/1/11720641178baa836ae6c98363837981317a5180.png)

---

<div class="post-metadata">

**Author:** ![indridcold](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/indridcold/32/16088_2.png) [@indridcold](https://forums.realmacsoftware.com/u/indridcold)\
**Post date:** [February 17, 2020, 9:47pm UTC](https://forums.realmacsoftware.com/t/creating-sub-directories/31247/2 "2020-02-17T21:47:18Z")

</div>

I don’t think there is a way to just add the folder part. Try removing the filename… RW just adds it straight back in.

Consider making the level elements offsite pages with the URL target set to #. That way you get the benefit of the navigation level into which you can add further pages but without the material overhead of a page as such. Just one way.

---

<div class="post-metadata">

**Author:** ![oldgustav](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/oldgustav/32/2477_2.png) [@oldgustav](https://forums.realmacsoftware.com/u/oldgustav)\
**Post date:** [February 17, 2020, 9:49pm UTC](https://forums.realmacsoftware.com/t/creating-sub-directories/31247/3 "2020-02-17T21:49:15Z")

</div>

I was going ask whether there is better way. I don’t fully understand your second paragraph (not very tech).

---

<div class="post-metadata">

**Author:** ![oldgustav](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/oldgustav/32/2477_2.png) [@oldgustav](https://forums.realmacsoftware.com/u/oldgustav)\
**Post date:** [February 17, 2020, 9:51pm UTC](https://forums.realmacsoftware.com/t/creating-sub-directories/31247/4 "2020-02-17T21:51:33Z")

</div>

We want the url to have this structure for seo purposes:

 ![30](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/7/8/789e28120ddbb50f1ed98f0beb95a9d2669c3025.png)

---

<div class="post-metadata">

**Author:** ![joemart1951](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/joemart1951/32/1193_2.png) [@joemart1951](https://forums.realmacsoftware.com/u/joemart1951)\
**Post date:** [February 18, 2020, 4:32am UTC](https://forums.realmacsoftware.com/t/creating-sub-directories/31247/5 "2020-02-18T04:32:42Z")

</div>

Take a look at this sample…you can watch the folder structure on the url line.  
All pages are index.html  
[http://www.ibize.com/subs/](http://www.ibize.com/subs/)

 ![04%20PM](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/9/a/9a343776508607a3d2e84abc4ef8a3f75c8e18f1.jpeg)

---

<div class="post-metadata">

**Author:** ![oldgustav](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/oldgustav/32/2477_2.png) [@oldgustav](https://forums.realmacsoftware.com/u/oldgustav)\
**Post date:** [February 18, 2020, 10:15am UTC](https://forums.realmacsoftware.com/t/creating-sub-directories/31247/6 "2020-02-18T10:15:45Z")

</div>

Thanks Joe but not sure I get it.

Watched a RW video tutorial last late that reminded me it’s much simpler to achieve. Eg. simply enter ‘/uk/wales/west-wales/pembrokeshire/st-davids’ in the Folder field.

---

<div class="post-metadata">

**Author:** ![indridcold](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/indridcold/32/16088_2.png) [@indridcold](https://forums.realmacsoftware.com/u/indridcold)\
**Post date:** [February 18, 2020, 10:23am UTC](https://forums.realmacsoftware.com/t/creating-sub-directories/31247/7 "2020-02-18T10:23:19Z")

</div>

Does adding the extra folder segments in the folder field result in the page layout in RW looking like your original screenshot?

---

<div class="post-metadata">

**Author:** ![DLH](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@DLH](https://forums.realmacsoftware.com/u/DLH)\
**Post date:** [February 18, 2020, 2:33pm UTC](https://forums.realmacsoftware.com/t/creating-sub-directories/31247/8 "2020-02-18T14:33:02Z")

</div>

This really depends on how you are doing your navigation. If you are using either the built-in navigation of a theme or a navigation stack that generates your menus automatically, the only way to get the nav items nested is to organize your pages into a hierarchy in the pages’ inspector area.

If you are handling the navigation manually, either with a manually curated navigation stack (where you add each item to it) or just through links on a page, then just entering the full path in the folder field would work fine. By entering the full path (`folder/subfolder/subfolder/page-folder`), RW will generate that folder hierarchy when you export/publish. What it won’t do is generate a hierarchal menu based on that path. In other words, you would not get the menu that Joe created and posted in his link. You would just have a completely flat nav system.

---

<div class="post-metadata">

**Author:** ![joemart1951](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/joemart1951/32/1193_2.png) [@joemart1951](https://forums.realmacsoftware.com/u/joemart1951)\
**Post date:** [February 18, 2020, 2:40pm UTC](https://forums.realmacsoftware.com/t/creating-sub-directories/31247/9 "2020-02-18T14:40:04Z")

</div>

Thanks Don

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [March 20, 2020, 12:40am UTC](https://forums.realmacsoftware.com/t/creating-sub-directories/31247/10 "2020-03-20T00:40:05Z")

</div>

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