# Custom permalinks

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

<div class="post-metadata">

**Author:** ![hnaseri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hnaseri/32/120660_2.png) [@hnaseri](https://meta.discourse.org/u/hnaseri)\
**Post date:** [February 3, 2017, 6:41pm UTC](https://meta.discourse.org/t/custom-permalinks/56867/3 "2017-02-03T18:41:11Z")

</div>

thanks.  
How can I programmatically create these permalinks? php code is preferred for me. is it possible?

I want to use discourse as a q&a platform in my educational app. My app has a structure like this:  
`course/chapter/lesson`  
So I want the users to be able to create new topics like this:  
`course/chapter/lesson/topic-1`  
`course/chapter/lesson/topic-2`  
etc…  
since this structure isn’t supported by discourse, I want to use this customized permalinks as a redirection tool to created topics. Is it a good idea?

---

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