Possible to have URLs that are relative to the location of the page hierarchy
Asked by Daniel Jonsson:

Hi,

I am documenting an API and would like to get a clearer and more logical structure to my Confluence page. I will show what I mean with an example.

If I have this page hierarchy in Confluence:

**Space Name**

* **Main Page**
  * **Sub Page**
    * **Sub page 2**

The automatic URLs that Confluence create for me is as follows:

**Space name:**https://confluence.com/display/Space+Name/Home/

* **Main page:** [https://confluence.com/display/Space+Name/**Main+Page\</strong\<\>\>**](https://confluence.com/display/Space+Name/%3Cstrong%3EMain+Page%3C/strong)**[](https://confluence.com/display/Space+Name/%3Cstrong%3EMain+Page%3C/strong)
  * [**Sub Page:**](https://confluence.com/display/Space+Name/%3Cstrong%3EMain+Page%3C/strong)[https://confluence.com/display/Space+Name/**Sub+Page\</strong\<\>\>**](https://confluence.com/display/Space+Name/%3Cstrong%3ESub+Page%3C/strong)**[](https://confluence.com/display/Space+Name/%3Cstrong%3ESub+Page%3C/strong)
  * [**Sub Page 2:**](https://confluence.com/display/Space+Name/%3Cstrong%3ESub+Page%3C/strong)[https://confluence.com/display/Space+Name/**Sub+Page+2**\</li\<\>\>](https://confluence.com/display/Space+Name/%3Cstrong%3ESub+Page+2%3C/strong%3E%3C/li)
  [](https://confluence.com/display/Space+Name/%3Cstrong%3ESub+Page+2%3C/strong%3E%3C/li)**
  **[](https://confluence.com/display/Space+Name/%3Cstrong%3ESub+Page+2%3C/strong%3E%3C/li)**
  **[](https://confluence.com/display/Space+Name/%3Cstrong%3ESub+Page+2%3C/strong%3E%3C/li)****
****[](https://confluence.com/display/Space+Name/%3Cstrong%3ESub+Page+2%3C/strong%3E%3C/li)****

****[But what I am after is this, more logical structure (the difference is marked in **bold**)](https://confluence.com/display/Space+Name/%3Cstrong%3ESub+Page+2%3C/strong%3E%3C/li)
[](https://confluence.com/display/Space+Name/%3Cstrong%3ESub+Page+2%3C/strong%3E%3C/li)
* [**Main page:**https://confluence.com/display/Space+Name/Main+Page/](https://confluence.com/display/Space+Name/%3Cstrong%3ESub+Page+2%3C/strong%3E%3C/li)[](https://confluence.com/display/Space+Name/%3Cstrong%3ESub+Page+2%3C/strong%3E%3C/li)
* [**Sub Page:**](https://confluence.com/display/Space+Name/%3Cstrong%3ESub+Page+2%3C/strong%3E%3C/li)[https://confluence.com/display/Space+Name/**Main+Page/Sub+Page\</strong\<\>\>**](https://confluence.com/display/Space+Name/%3Cstrong%3EMain+Page/Sub+Page%3C/strong)**[](https://confluence.com/display/Space+Name/%3Cstrong%3EMain+Page/Sub+Page%3C/strong)
* [**Sub Page 2:**](https://confluence.com/display/Space+Name/%3Cstrong%3EMain+Page/Sub+Page%3C/strong)[https://confluence.com/display/Space+Name/**Main+Page/Sub+Page/Sub+Page+2**\</li\<\>\>](https://confluence.com/display/Space+Name/%3Cstrong%3EMain+Page/Sub+Page/Sub+Page+2%3C/strong%3E%3C/li)
[](https://confluence.com/display/Space+Name/%3Cstrong%3EMain+Page/Sub+Page/Sub+Page+2%3C/strong%3E%3C/li)**
**[](https://confluence.com/display/Space+Name/%3Cstrong%3EMain+Page/Sub+Page/Sub+Page+2%3C/strong%3E%3C/li)**
**[](https://confluence.com/display/Space+Name/%3Cstrong%3EMain+Page/Sub+Page/Sub+Page+2%3C/strong%3E%3C/li)**
**[](https://confluence.com/display/Space+Name/%3Cstrong%3EMain+Page/Sub+Page/Sub+Page+2%3C/strong%3E%3C/li)**
**[Is it possible to get this structure?](https://confluence.com/display/Space+Name/%3Cstrong%3EMain+Page/Sub+Page/Sub+Page+2%3C/strong%3E%3C/li)******


Answers:
author: Braxton Ehle
body: Not currently, <https://jira.atlassian.com/browse/CONF-18089> is the JIRA that's tracking the request.


author: SarahA
body: Hallo fnufnu

I don't know of any way to get the hierarchy of page names into the URL structure, as you have shown in your question.

But it's possible to get your wiki to show the structure, even if it's not part of the URL. Have you tried using the Documentation theme on your Confluence space? That will give you a nice tree structure in the left-hand navigation panel, as you can see in this space for example:

<https://confluence.atlassian.com/display/DOC/>

You can also display the tree structure yourself, on any page, using the Page Tree macro:

<https://confluence.atlassian.com/display/DOC/Page+Tree+Macro>

To get your pages into the right logical position, you can either move them (Tools \> Move) or drag and drop them in the space's Tree view (Browse \> Pages \> Tree).

See the docs: <https://confluence.atlassian.com/display/DOC/Moving+a+Page#MovingaPage-MovingaPagewithinaSpace>

I hope this helps.

Cheers, Sarah


author: Giuliano C.
body: Unfortunately, you can't really make one space into a child of another. I'm not sure if it could help you, but, there is a third-party plugin that might cater this requirement, which is the [Metadata 2 Plugin](http://confluence.atlassian.com/display/CONFEXT/Metadata+Plugin+2). However, please note that the plugin is not supported by Atlassian.  

Also, there is a Feature Request that could interest you: <https://jira.atlassian.com/browse/CONF-1411>   

Cheers