Map a resource to another controller


I have a Page controller. I use it as a tree structure to manage pages
in a CMS. Is it possible to map an address /pages/1 to another
controller, say /forum ?

I need it because not every page should be a CMS page but sometimes it
should display another module, a forum, a gallery… etc…