# Optimising Discourse URLs

**URL:** https://meta.discourse.org/t/optimising-discourse-urls/204974
**Category:** Support
**Created:** [October 1, 2021, 2:49pm UTC](https://meta.discourse.org/t/optimising-discourse-urls/204974 "2021-10-01T14:49:48Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Katherine](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@Katherine](https://meta.discourse.org/u/Katherine)
#### Post date: [October 1, 2021, 2:49pm UTC](https://meta.discourse.org/t/optimising-discourse-urls/204974/1 "2021-10-01T14:49:48Z")

</div>

Hi all,

I have a few questions regarding Discourse URLs.

**QUESTION 1: Why are random letters and numbers added within URLs?**

- How can we create URLs without these additional subfolders?
- From my SEO understanding, extra URL subfolders push the content further away from the root domain, which dilutes the authority in Google’s eyes. They also look more spammy/ are not good for UX or trust.
- Examples:community.examplewebsite.com/c/category-name/10, [community.examplewebsite.com/t/topic/2529/2](http://community.examplewebsite.com/t/topic/2529/2)

**QUESTION 2: How do we ensure that topics which have been assigned a particular parent and child category, remain in that corresponding URL structure?**

- This is a huge SEO factor - the more relevant pages which sit within these categories and subfolders help build up authority and indicate to Google how much content sits within these categories. From my understanding, without the folder structure, each individual post URL just sits off the root domain and Google does not see it as categorised or see a hierarchy of related content
- Example: topic 1 has been categorised within parent category 1 \> child category 2 , but the URL structure does not reflect this, and the topic still sits off the root domain: community.mojo.so/t/topic-name/2529/2
- The optimised URL structure should be: community.mojo.so/parent-category-1/child-category-1/topic-1/

Would be grateful for any insights (in Layman’s terms)!

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [October 1, 2021, 3:14pm UTC](https://meta.discourse.org/t/optimising-discourse-urls/204974/2 "2021-10-01T15:14:51Z")

</div>

Answer1: The Numbers are the topic id and then followed by the post id

Answer2 : activating the /admin/site\_settings/category/all\_results?filter=fixed\_category\_positions  
will allow you to re-arrange categories

---

<div class="post-metadata">

### Author: ![Katherine](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@Katherine](https://meta.discourse.org/u/Katherine)
#### Post date: [October 1, 2021, 3:24pm UTC](https://meta.discourse.org/t/optimising-discourse-urls/204974/3 "2021-10-01T15:24:36Z")

</div>

Thank you.

I’ve managed to arrange the categories within the forum, however then once a topic is created within a category, the URL structure does not reflect the categorisation (it doesn’t sit within the same URL folder structure). Do you know a way to ensure it sits within this?

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [October 1, 2021, 3:30pm UTC](https://meta.discourse.org/t/optimising-discourse-urls/204974/4 "2021-10-01T15:30:07Z")

</div>

Categories as displayed as `https://meta.discourse.org/c/support/6`

where support has an id of 6 and can also be referenced as `https://meta.discourse.org/c/6`

topics are displayed as `https://meta.discourse.org/t/optimising-discourse-urls/204974/`

where the topic id is 204974 and can also be referenced as `https://meta.discourse.org/t/204974/`

a specific post is displayed as `https://meta.discourse.org/t/optimising-discourse-urls/204974/2`

where the topic id is 204974 and the post id is 2 and can also be referenced as `https://meta.discourse.org/t/204974/2/`

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 1, 2021, 4:07pm UTC](https://meta.discourse.org/t/optimising-discourse-urls/204974/5 "2021-10-01T16:07:57Z")

</div>

> [@Katherine](#):
>
> the URL structure does not reflect the categorisation (it doesn’t sit within the same URL folder structure). Do you know a way to ensure it sits within this?

That is not possible at the moment. All we do is set the category as breadcrumbs in the page metadata:

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/8/d88ef62accdbfd45d4ccd522b58410719e38254a.png)

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [October 1, 2021, 4:32pm UTC](https://meta.discourse.org/t/optimising-discourse-urls/204974/6 "2021-10-01T16:32:59Z")

</div>

And there is another point: structure of URL has nothing to do with SEO. Only the content in that URL matters. SEO includes a lot of pure folklore that supports only selling pitches of SEO consults 😉

---

<div class="post-metadata">

### Author: ![j127](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j127/32/79093_2.png) [@j127](https://meta.discourse.org/u/j127)
#### Post date: [October 1, 2021, 8:33pm UTC](https://meta.discourse.org/t/optimising-discourse-urls/204974/7 "2021-10-01T20:33:55Z")

</div>

> [@Katherine](#):
>
> From my SEO understanding, extra URL subfolders push the content further away from the root domain, which dilutes the authority in Google’s eyes.

I don’t think that matters any more. It would be far more damaging to traffic if the URL structure were changed at this point.

> [@Jagster](#):
>
> Only the content in that URL matters. SEO includes a lot of pure folklore that supports only selling pitches of SEO consults

There is a lot of snake oil in the SEO industry, but it definitely works if done correctly. Content is just one of many on-site factors.
