XF 2.1 redirecting old site urls to new urls by addon controller

hi i need redirect my old site urls to new urls
example :
www.oldsite.com/articles/title/id to www.newsite.com/threads/title.id/

i added a simple controller
class oldtonew extends AbstractController {
public function actionIndex(ParameterBag $params)

and a route in development routes menu
Route prefix : articles
Controller: "address of controller"
but not working.
where is it problem?