# Custom permalinks

**URL:** <https://meta.discourse.org/t/custom-permalinks/56867>\
**Category:** Support\
**Created:** [3. Februar 2017 um 15:41 UTC](https://meta.discourse.org/t/custom-permalinks/56867 "2017-02-03T15:41:38Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
**Post date:** [3. Februar 2017 um 21:18 UTC](https://meta.discourse.org/t/custom-permalinks/56867/5 "2017-02-03T21:18:05Z")

</div>

> [@hnaseri](#):
>
> How can I programmatically create these permalinks?

There’s a post in the linked topic with an example:

[https://meta.discourse.org/t/redirecting-old-forum-urls-to-new-discourse-urls/20930/16?u=neil](https://meta.discourse.org/t/redirecting-old-forum-urls-to-new-discourse-urls/20930/16)

```plaintext
Permalink.create(url: '/discussion/12345', topic_id: 987)

```

---

_[View the full topic](https://meta.discourse.org/t/custom-permalinks/56867)._
