# How to use a custom router?

**URL:** <https://forum.getkirby.com/t/how-to-use-a-custom-router/8341>\
**Category:** Questions\
**Tags:** v2\
**Created:** [August 25, 2017, 7:15am UTC](https://forum.getkirby.com/t/how-to-use-a-custom-router/8341 "2017-08-25T07:15:54Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [August 25, 2017, 9:23am UTC](https://forum.getkirby.com/t/how-to-use-a-custom-router/8341/4 "2017-08-25T09:23:42Z")

</div>

> [@bvdputte](#):
>
> What does this do: if($route = $router-\>run())?

According to the code comments it “iterates through every route to find a matching route”.

---

_[View the full topic](https://forum.getkirby.com/t/how-to-use-a-custom-router/8341)._
